riyamalshe commited on
Commit
f991429
·
verified ·
1 Parent(s): 541e826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -183,10 +183,10 @@ with gr.Blocks() as demo:
183
  cool_button.click(fn=respond_cool, inputs=[], outputs=[])
184
  tutor_button.click(fn=respond_tutor, inputs=[], outputs=[])
185
  strict_button.click(fn=respond_strict, inputs=[], outputs=[])
186
- if cool_button.click():
187
- chatbot = gr.ChatInterface(respond_cool, type = 'messages')
188
- elif tutor_button.click():
189
- chatbot = gr.ChatInterface(respond_tutor, type = 'messages')
190
- else:
191
- chatbot = gr.ChatInterface(respond_strict, type = 'messages')
192
  demo.launch()
 
183
  cool_button.click(fn=respond_cool, inputs=[], outputs=[])
184
  tutor_button.click(fn=respond_tutor, inputs=[], outputs=[])
185
  strict_button.click(fn=respond_strict, inputs=[], outputs=[])
186
+ #if cool_button.click():
187
+ #chatbot = gr.ChatInterface(respond_cool, type = 'messages')
188
+ #elif tutor_button.click():
189
+ #chatbot = gr.ChatInterface(respond_tutor, type = 'messages')
190
+ #else:
191
+ #chatbot = gr.ChatInterface(respond_strict, type = 'messages')
192
  demo.launch()