nafis007 commited on
Commit
e0e6eec
·
verified ·
1 Parent(s): 21749d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,14 +21,14 @@ def chatbot_response(user_message):
21
 
22
  return ["✅ নিরাময় AI আপনার প্রশ্ন বিশ্লেষণ করেছে..."]
23
 
24
- # 🚀 Enable API Mode (Important!)
25
  iface = gr.Interface(
26
  fn=chatbot_response,
27
  inputs=gr.Textbox(label="User Message"),
28
  outputs=gr.Textbox(label="Chatbot Response"),
29
  title="🔹 Niramoy Bangla Medical Chatbot 🔹",
30
- allow_flagging="never"
31
  )
32
 
33
- # 🔹 **Ensure API is Enabled** by setting `enable_queue=True`
34
- iface.launch(share=True, enable_queue=True)
 
21
 
22
  return ["✅ নিরাময় AI আপনার প্রশ্ন বিশ্লেষণ করেছে..."]
23
 
24
+ # 🚀 Enable API Mode (Fix `enable_queue` issue)
25
  iface = gr.Interface(
26
  fn=chatbot_response,
27
  inputs=gr.Textbox(label="User Message"),
28
  outputs=gr.Textbox(label="Chatbot Response"),
29
  title="🔹 Niramoy Bangla Medical Chatbot 🔹",
30
+ flagging_mode="never" # ✅ Fix deprecated `allow_flagging`
31
  )
32
 
33
+ # 🔹 **Remove `enable_queue=True` to fix the issue**
34
+ iface.launch(share=True)