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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -175,24 +175,15 @@ def respond_strict(message, history):
175
 
176
 
177
  with gr.Blocks() as demo:
178
- cool_button = gr.Button(value="Cool Mom", variant="primary")
 
 
 
179
  cool_button.click(fn=respond_cool, inputs=[], outputs=[])
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()
 
175
 
176
 
177
  with gr.Blocks() as demo:
178
+ with gr.Row():
179
+ cool_button = gr.Button("Cool Mom")
180
+ tutor_button = gr.Button("Tutor Mom")
181
+ strict_button = gr.Button("Strict Mom")
182
  cool_button.click(fn=respond_cool, inputs=[], outputs=[])
 
 
 
 
 
183
  tutor_button.click(fn=respond_tutor, inputs=[], outputs=[])
 
 
 
 
 
184
  strict_button.click(fn=respond_strict, inputs=[], outputs=[])
185
 
186
  demo.launch()
 
 
187
 
188
  chatbot = gr.ChatInterface(respond, type = 'messages')
189
  chatbot.launch()