PearlIsa commited on
Commit
e2d6407
1 Parent(s): db9e775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -1184,21 +1184,7 @@ def create_demo() -> gr.Blocks:
1184
  None
1185
  )
1186
 
1187
-
1188
- # Set up event handlers
1189
- def on_chat(message, history):
1190
- result = chat(message, history)
1191
- feedback.update(visible=True)
1192
- return result, gr.update(value="")
1193
-
1194
- msg.submit(on_chat, [msg, chatbot], [chatbot, msg])
1195
- submit.click(on_chat, [msg, chatbot], [chatbot, msg])
1196
-
1197
- feedback.change(
1198
- lambda feedback_choice, message, response: handle_feedback(feedback_choice, message, response),
1199
- [feedback, msg, chatbot],
1200
- None
1201
- )
1202
  gr.HTML("""
1203
  <div style="text-align: center; margin-top: 20px; font-size: 0.8em; color: #666;">
1204
  <p>This is a medical triage assistant. For emergencies, always call 999.</p>
 
1184
  None
1185
  )
1186
 
1187
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1188
  gr.HTML("""
1189
  <div style="text-align: center; margin-top: 20px; font-size: 0.8em; color: #666;">
1190
  <p>This is a medical triage assistant. For emergencies, always call 999.</p>