ASG Models commited on
Commit
102ba33
·
verified ·
1 Parent(s): c66483a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -188,13 +188,13 @@ def chatbot_fn(input_text, input_audio):
188
  return chat_history
189
  with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
190
 
191
- # with gr.Tab("ChatBot "):
192
- # chatbot = gr.Chatbot(label="محادثة")
193
- # with gr.Row():
194
- # txt = gr.Textbox(label="أدخل رسالتك")
195
- # audio = gr.Audio(sources="microphone", type="filepath")
196
- # txt.change(chatbot_fn, [txt, audio], chatbot)
197
- # audio.change(chatbot_fn, [txt, audio], chatbot)
198
 
199
  with gr.Tab("Chat AI "):
200
  gr.Markdown("## AI: محادثة صوتية بالذكاء الاصطناعي باللهجة السعودية")
 
188
  return chat_history
189
  with gr.Blocks() as demo: # Use gr.Blocks to wrap the entire interface
190
 
191
+ with gr.Tab("ChatBot "):
192
+ chatbot = gr.Chatbot(label="محادثة")
193
+ with gr.Row():
194
+ txt = gr.Textbox(label="أدخل رسالتك")
195
+ audio = gr.Audio(sources="microphone", type="filepath")
196
+ txt.change(chatbot_fn, [txt, audio], chatbot)
197
+ audio.change(chatbot_fn, [txt, audio], chatbot)
198
 
199
  with gr.Tab("Chat AI "):
200
  gr.Markdown("## AI: محادثة صوتية بالذكاء الاصطناعي باللهجة السعودية")