Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|