Spaces:
Runtime error
Runtime error
File size: 667 Bytes
2d5ffb4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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()
|