Update app.py
Browse files
app.py
CHANGED
@@ -21,14 +21,14 @@ def chatbot_response(user_message):
|
|
21 |
|
22 |
return ["✅ নিরাময় AI আপনার প্রশ্ন বিশ্লেষণ করেছে..."]
|
23 |
|
24 |
-
# 🚀 Enable API Mode (
|
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 |
-
|
31 |
)
|
32 |
|
33 |
-
# 🔹 **
|
34 |
-
iface.launch(share=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)
|