Daniel Huynh commited on
Commit
9578783
1 Parent(s): 8042b49

fix: no queue

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -154,14 +154,14 @@ def create_demo(base_url, instructions):
154
  full_html = gr.Code(language="html", label="Full HTML", interactive=False, lines=20)
155
 
156
  # Linking components
157
- url_input.submit(process_url, inputs=url_input, outputs=image_display)
158
- text_area.submit(show_processing_message, outputs=[status_html]).then(
159
- process_instruction, inputs=[text_area, url_input], outputs=[code_display, source_display]
160
  ).then(
161
  exec_code, inputs=[code_display, source_display, full_code, url_input],
162
- outputs=[log_display, code_display, full_html, status_html, full_code, url_input]
163
  ).then(
164
- update_image_display, inputs=[image_display, url_input], outputs=[image_display, url_input]
165
  )
166
  demo.launch(share=True, debug=True)
167
 
 
154
  full_html = gr.Code(language="html", label="Full HTML", interactive=False, lines=20)
155
 
156
  # Linking components
157
+ url_input.submit(process_url, inputs=url_input, outputs=image_display, queue=False)
158
+ text_area.submit(show_processing_message, outputs=[status_html], queue=False).then(
159
+ process_instruction, inputs=[text_area, url_input], outputs=[code_display, source_display], queue=False
160
  ).then(
161
  exec_code, inputs=[code_display, source_display, full_code, url_input],
162
+ outputs=[log_display, code_display, full_html, status_html, full_code, url_input], queue=False
163
  ).then(
164
+ update_image_display, inputs=[image_display, url_input], outputs=[image_display, url_input], queue=False
165
  )
166
  demo.launch(share=True, debug=True)
167