Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 87 |
image = gr.Image(type="pil")
|
| 88 |
chat = gr.Chatbot(show_label=False)
|
| 89 |
submit = gr.Button(value="Upload", variant="primary")
|
|
|
|
| 90 |
response_handler = (
|
| 91 |
response,
|
| 92 |
[chat, image],
|
|
@@ -99,7 +100,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 99 |
[submit]
|
| 100 |
)
|
| 101 |
|
| 102 |
-
event = submit.click(
|
| 103 |
# event.then(*postresponse_handler)
|
| 104 |
|
| 105 |
demo.launch()
|
|
|
|
| 87 |
image = gr.Image(type="pil")
|
| 88 |
chat = gr.Chatbot(show_label=False)
|
| 89 |
submit = gr.Button(value="Upload", variant="primary")
|
| 90 |
+
|
| 91 |
response_handler = (
|
| 92 |
response,
|
| 93 |
[chat, image],
|
|
|
|
| 100 |
[submit]
|
| 101 |
)
|
| 102 |
|
| 103 |
+
event = submit.click(*response_handler)
|
| 104 |
# event.then(*postresponse_handler)
|
| 105 |
|
| 106 |
demo.launch()
|