Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,11 +99,12 @@ interface = gr.Interface(
|
|
| 99 |
outputs=gr.Textbox(lines=1, label="Response"),
|
| 100 |
title="Gemma Mentor Chatbot",
|
| 101 |
description="Ask questions and get warm, supportive, emotionally intelligent responses. Type 'exit' to reset.",
|
| 102 |
-
|
| 103 |
theme="default",
|
| 104 |
-
live=False,
|
| 105 |
-
api_name="/predict"
|
| 106 |
)
|
| 107 |
|
|
|
|
| 108 |
if __name__ == "__main__":
|
| 109 |
interface.launch(share=False, enable_queue=True)
|
|
|
|
| 99 |
outputs=gr.Textbox(lines=1, label="Response"),
|
| 100 |
title="Gemma Mentor Chatbot",
|
| 101 |
description="Ask questions and get warm, supportive, emotionally intelligent responses. Type 'exit' to reset.",
|
| 102 |
+
flagging_mode="never", # ✅ updated from deprecated allow_flagging
|
| 103 |
theme="default",
|
| 104 |
+
live=False,
|
| 105 |
+
api_name="/predict"
|
| 106 |
)
|
| 107 |
|
| 108 |
+
# Launch with queue support for /predict
|
| 109 |
if __name__ == "__main__":
|
| 110 |
interface.launch(share=False, enable_queue=True)
|