Spaces:
Runtime error
Runtime error
import gradio as gr | |
from agent import query_agent | |
def chat_interface(user_input, history): | |
response = query_agent(user_input) | |
history.append((user_input, response)) | |
return "", history | |
with gr.Blocks() as demo: | |
gr.Markdown("# 🤖 NINU Agent Chatbot") | |
chatbot = gr.Chatbot() | |
msg = gr.Textbox(label="اكتب سؤالك هنا") | |
msg.submit(chat_interface, [msg, chatbot], [msg, chatbot]) | |
demo.launch() | |