riyamalshe commited on
Commit
c7724bc
·
verified ·
1 Parent(s): 3dfdcc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -180,19 +180,19 @@ with gr.Blocks() as demo:
180
 
181
  demo.launch()
182
 
183
- with gr.Blocks() as demo:
184
  tutor_button = gr.Button(value="Tutor Mom", variant="primary")
185
  tutor_button.click(fn=respond_tutor, inputs=[], outputs=[])
186
 
187
  demo.launch()
188
 
189
- with gr.Blocks() as demo:
190
  strict_button = gr.Button(value="Strict Mom", variant="primary")
191
  strict_button.click(fn=respond_strict, inputs=[], outputs=[])
192
 
193
  demo.launch()
194
-
195
-
196
 
197
  chatbot = gr.ChatInterface(respond, type = 'messages')
198
  chatbot.launch()
 
180
 
181
  demo.launch()
182
 
183
+ with gr.Blocks() as demo1:
184
  tutor_button = gr.Button(value="Tutor Mom", variant="primary")
185
  tutor_button.click(fn=respond_tutor, inputs=[], outputs=[])
186
 
187
  demo.launch()
188
 
189
+ with gr.Blocks() as demo2:
190
  strict_button = gr.Button(value="Strict Mom", variant="primary")
191
  strict_button.click(fn=respond_strict, inputs=[], outputs=[])
192
 
193
  demo.launch()
194
+ demo1.launch()
195
+ demo2.launch()
196
 
197
  chatbot = gr.ChatInterface(respond, type = 'messages')
198
  chatbot.launch()