import gradio as gr
import os
HF_TOKEN = os.getenv('HF_TOKEN')
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Rick-bot-flags")
title = "Have Fun With RickBot"
description = """
The bot is trained on Rick and Morty dialogues Kaggle Dataset using DialoGPT.
"""
article = "Complete Tutorial
Project is Available at DAGsHub
"
gr.Interface.load("huggingface/kingabzpro/DialoGPT-small-Rick-Bot","textbox","chatbot",theme ="grass", title = title, flagging_callback=hf_writer,description = description, article = article).launch(enable_queue=True) # customizes the input component