Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,16 +70,6 @@ with gr.Blocks() as demo:
|
|
70 |
image_input = gr.Image(type="pil", label="Upload Image")
|
71 |
submit_button = gr.Button("Analyze")
|
72 |
chatbot_output = gr.Chatbot(label="Analysis Output")
|
73 |
-
|
74 |
-
submit_button.click(
|
75 |
-
fn=user, # Call user function first
|
76 |
-
inputs=[text_input, chatbot_output],
|
77 |
-
outputs=[chatbot_output],
|
78 |
-
queue=False # Prevent user input from being queued
|
79 |
-
).then(
|
80 |
-
fn=bot,
|
81 |
-
inputs=[image_input, 0.4, 1024, "END", 32, 1, chatbot_output],
|
82 |
-
outputs=[chatbot_output]
|
83 |
-
)
|
84 |
|
85 |
demo.launch()
|
|
|
70 |
image_input = gr.Image(type="pil", label="Upload Image")
|
71 |
submit_button = gr.Button("Analyze")
|
72 |
chatbot_output = gr.Chatbot(label="Analysis Output")
|
73 |
+
submit_btn.click(fn=respond, inputs=[txt_input, chatbot], outputs=[chatbot, txt_input])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
demo.launch()
|