NINU / app.py
Ali-Developments's picture
Upload 6 files
8987ddb verified
raw
history blame
431 Bytes
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()