import gradio as gr import os from dataset_loader import load_dataset if not os.path.isdir("gift_recommending_chatbot_data"): load_dataset() from gift_recommending_chatbot_data.utils import generate_gift_suggestion # Initialize the conversation conversation = [] # Create the Gradio interface iface = gr.Interface( title="Gift Recommending Chatbot", fn=generate_gift_suggestion, inputs="text", outputs="text", description="You can get the facebook username by his/her facebook profile link. e.g. https://www.facebook.com/username, paste in the {username}", ) iface.queue(default_concurrency_limit=None) # Launch the app iface.launch()