Avinashnalla7 commited on
Commit
7474815
·
verified ·
1 Parent(s): 908f8e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -103,4 +103,10 @@ with gr.Blocks() as demo:
103
  btn.click(fn=process, inputs=[files, config_json], outputs=[out])
104
 
105
  if __name__ == "__main__":
106
- demo.launch(server_name="0.0.0.0", server_port=int(os.getenv("PORT", "7860")), ssr_mode=False)
 
 
 
 
 
 
 
103
  btn.click(fn=process, inputs=[files, config_json], outputs=[out])
104
 
105
  if __name__ == "__main__":
106
+ demo.queue() # important on HF
107
+ demo.launch(
108
+ server_name="0.0.0.0",
109
+ server_port=int(os.getenv("PORT", "7860")),
110
+ ssr_mode=False,
111
+ show_error=True,
112
+ )