Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|