Update app.py
Browse files
app.py
CHANGED
@@ -310,12 +310,15 @@ with gr.Blocks(css=css) as demo:
|
|
310 |
cookie, # This cookie is not being set in the response
|
311 |
)
|
312 |
|
|
|
313 |
submit_btn.click(
|
314 |
handle_submit,
|
315 |
inputs=[input_img, description_type, custom_instruction],
|
316 |
outputs=[output_text, redirect_message, submit_btn, test_counter_display, gr.Markdown(visible=True, label="User ID")],
|
317 |
)
|
318 |
|
|
|
|
|
319 |
with gr.Column():
|
320 |
output_text = gr.Markdown(label="Output Text", show_copy_button=True, elem_classes="output-text")
|
321 |
redirect_message = gr.Markdown(visible=False, elem_classes="redirect-message")
|
|
|
310 |
cookie, # This cookie is not being set in the response
|
311 |
)
|
312 |
|
313 |
+
# Update the outputs of the submit button click event
|
314 |
submit_btn.click(
|
315 |
handle_submit,
|
316 |
inputs=[input_img, description_type, custom_instruction],
|
317 |
outputs=[output_text, redirect_message, submit_btn, test_counter_display, gr.Markdown(visible=True, label="User ID")],
|
318 |
)
|
319 |
|
320 |
+
|
321 |
+
|
322 |
with gr.Column():
|
323 |
output_text = gr.Markdown(label="Output Text", show_copy_button=True, elem_classes="output-text")
|
324 |
redirect_message = gr.Markdown(visible=False, elem_classes="redirect-message")
|