Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -83,13 +83,16 @@ def response(history, image):
|
|
83 |
history[-1][1] = partial_response
|
84 |
yield history
|
85 |
|
86 |
-
with gr.Blocks(css=css
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
93 |
|
94 |
response_handler = (
|
95 |
response,
|
|
|
83 |
history[-1][1] = partial_response
|
84 |
yield history
|
85 |
|
86 |
+
with gr.Blocks(css=css) as demo:
|
87 |
+
gr.HTML(title)
|
88 |
+
with gr.Row()
|
89 |
+
with gr.Column(elem_id="col-container"):
|
90 |
+
image = gr.Image(type="pil")
|
91 |
+
message = gr.Textbox(interactive=True, show_label=False, container=False)
|
92 |
+
chat = gr.Chatbot(show_label=False)
|
93 |
+
submit = gr.Button(value="Upload", variant="primary")
|
94 |
+
with gr.Column()
|
95 |
+
output = gr.Image(type="pil")
|
96 |
|
97 |
response_handler = (
|
98 |
response,
|