as-cle-bert commited on
Commit
5bb3730
·
verified ·
1 Parent(s): e256579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -92,11 +92,11 @@ with gr.Blocks() as demo2:
92
  btn.click(fn=refreshfn, inputs=None, outputs=t)
93
 
94
 
95
- accrdnA = gr.Accordion(label="Choose model A")
96
- accrdnB = gr.Accordion(label="Choose model B")
97
 
98
- chtbA = gr.Chatbot(label="Chat with Model A")
99
- chtbB = gr.Chatbot(label="Chat with Model B")
100
 
101
  with gr.Blocks() as demo1:
102
  gr.ChatInterface(fn=replyA, chatbot=chtbA, additional_inputs=modelAchoice, additional_inputs_accordion=accrdnA, submit_btn="Submit to Model A")
 
92
  btn.click(fn=refreshfn, inputs=None, outputs=t)
93
 
94
 
95
+ accrdnA = gr.Accordion(label="Choose model A", open=False)
96
+ accrdnB = gr.Accordion(label="Choose model B", open=False)
97
 
98
+ chtbA = gr.Chatbot(label="Chat with Model A", height=200)
99
+ chtbB = gr.Chatbot(label="Chat with Model B", height=200)
100
 
101
  with gr.Blocks() as demo1:
102
  gr.ChatInterface(fn=replyA, chatbot=chtbA, additional_inputs=modelAchoice, additional_inputs_accordion=accrdnA, submit_btn="Submit to Model A")