HongzeFu commited on
Commit
ec111ba
·
1 Parent(s): eac6ddb
Files changed (2) hide show
  1. app.py +0 -5
  2. gradio-web/main.py +0 -1
app.py CHANGED
@@ -52,7 +52,6 @@ def build_allowed_paths() -> list[str]:
52
 
53
 
54
  _APP_BOOTSTRAPPED = False
55
- _DEMO_QUEUED = False
56
 
57
 
58
  def bootstrap_runtime() -> None:
@@ -71,11 +70,7 @@ demo = create_ui_blocks()
71
 
72
 
73
  def main() -> None:
74
- global _DEMO_QUEUED
75
  bootstrap_runtime()
76
- if not _DEMO_QUEUED:
77
- demo.queue(default_concurrency_limit=2)
78
- _DEMO_QUEUED = True
79
  allowed_paths = build_allowed_paths()
80
  demo.launch(
81
  server_name="0.0.0.0",
 
52
 
53
 
54
  _APP_BOOTSTRAPPED = False
 
55
 
56
 
57
  def bootstrap_runtime() -> None:
 
70
 
71
 
72
  def main() -> None:
 
73
  bootstrap_runtime()
 
 
 
74
  allowed_paths = build_allowed_paths()
75
  demo.launch(
76
  server_name="0.0.0.0",
gradio-web/main.py CHANGED
@@ -49,7 +49,6 @@ def main():
49
  allowed_paths = build_allowed_paths()
50
 
51
  demo = create_ui_blocks()
52
- demo.queue(default_concurrency_limit=2)
53
  demo.launch(
54
  server_name="0.0.0.0",
55
  server_port=int(os.getenv("PORT", "7860")),
 
49
  allowed_paths = build_allowed_paths()
50
 
51
  demo = create_ui_blocks()
 
52
  demo.launch(
53
  server_name="0.0.0.0",
54
  server_port=int(os.getenv("PORT", "7860")),