Spaces:
Sleeping
Sleeping
import gradio as gr | |
from utils.openai_utils import chat_with_bot | |
def create_chat_tab(chatbot_id_input): | |
chatbot_title = gr.Markdown("Welcome to the Chatbot") | |
chat_interface = gr.ChatInterface( | |
chat_with_bot, | |
additional_inputs=[chatbot_id_input], | |
) | |
share_link = gr.Textbox(label="Share Link", interactive=False) | |
return { | |
"title": chatbot_title, | |
"interface": chat_interface, | |
"share_link": share_link | |
} |