sczhou commited on
Commit
bd507f5
1 Parent(s): e71bf27
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -289,5 +289,6 @@ demo = gr.Interface(
289
  ['05.jpg', True, True, 2, 0.1]
290
  ])
291
 
292
- demo.queue(api_open=False, concurrency_count=2, max_size=20)
293
- demo.launch()
 
 
289
  ['05.jpg', True, True, 2, 0.1]
290
  ])
291
 
292
+ DEBUG = os.getenv('DEBUG') == '1'
293
+ demo.queue(api_open=False, concurrency_count=2, max_size=10)
294
+ demo.launch(debug=DEBUG)