supp03 commited on
Commit
f5300db
·
verified ·
1 Parent(s): 73ddb1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- allow_flagging="never",
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)