Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -167,7 +167,7 @@ with gr.Blocks() as app:
|
|
| 167 |
json_out=gr.JSON()
|
| 168 |
|
| 169 |
sub_b = submit_b.click(generate, [msg,chatbot],[chatbot,json_out])
|
| 170 |
-
sub_im = submit_im.click(run, [json_out,model_drop],[
|
| 171 |
sub_e = msg.submit(run, [msg, chatbot,model_drop], [chatbot,im_out])
|
| 172 |
stop_b.click(None,None,None, cancels=[sub_b,sub_e])
|
| 173 |
app.launch()
|
|
|
|
| 167 |
json_out=gr.JSON()
|
| 168 |
|
| 169 |
sub_b = submit_b.click(generate, [msg,chatbot],[chatbot,json_out])
|
| 170 |
+
sub_im = submit_im.click(run, [json_out,model_drop],[im_out])
|
| 171 |
sub_e = msg.submit(run, [msg, chatbot,model_drop], [chatbot,im_out])
|
| 172 |
stop_b.click(None,None,None, cancels=[sub_b,sub_e])
|
| 173 |
app.launch()
|