acecalisto3 commited on
Commit
788070b
·
verified ·
1 Parent(s): 794da70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -287,8 +287,6 @@ if __name__ == "__main__":
287
  "server_name": "0.0.0.0",
288
  "server_port": 7860,
289
  "debug": True,
290
- "enable_queue": True,
291
- "max_threads": 10
292
  }
293
 
294
  if not is_on_spaces:
@@ -299,7 +297,9 @@ if __name__ == "__main__":
299
 
300
  # Launch application
301
  logger.info("Launching Gradio interface...")
302
- demo.queue().launch(**launch_kwargs)
 
 
303
 
304
  except Exception as e:
305
  logger.error(f"Error launching application: {str(e)}")
 
287
  "server_name": "0.0.0.0",
288
  "server_port": 7860,
289
  "debug": True,
 
 
290
  }
291
 
292
  if not is_on_spaces:
 
297
 
298
  # Launch application
299
  logger.info("Launching Gradio interface...")
300
+ # Enable queue before launching
301
+ demo = demo.queue()
302
+ demo.launch(**launch_kwargs)
303
 
304
  except Exception as e:
305
  logger.error(f"Error launching application: {str(e)}")