cyberandy commited on
Commit
0db7aa4
·
verified ·
1 Parent(s): 56f3e42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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")