div0-space commited on
Commit
a89e2d5
·
verified ·
1 Parent(s): 3849106

Remove deprecated queue(), set max_threads

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,6 @@ def build_auth() -> List[Tuple[str, str]] | None:
43
  def build_demo(html: str, auth: List[Tuple[str, str]] | None) -> gr.Blocks:
44
  with gr.Blocks(title="LibraxisAI API Batch Tester", css="body{background:#0b0b0c;}") as demo:
45
  gr.HTML(html)
46
- demo.queue(concurrency_count=1)
47
  port = int(os.getenv("PORT", os.getenv("GRADIO_PORT", "7860")))
48
  demo.launch(
49
  server_name="0.0.0.0",
@@ -51,6 +50,7 @@ def build_demo(html: str, auth: List[Tuple[str, str]] | None) -> gr.Blocks:
51
  auth=auth,
52
  show_api=False,
53
  inline=False,
 
54
  )
55
  return demo
56
 
 
43
  def build_demo(html: str, auth: List[Tuple[str, str]] | None) -> gr.Blocks:
44
  with gr.Blocks(title="LibraxisAI API Batch Tester", css="body{background:#0b0b0c;}") as demo:
45
  gr.HTML(html)
 
46
  port = int(os.getenv("PORT", os.getenv("GRADIO_PORT", "7860")))
47
  demo.launch(
48
  server_name="0.0.0.0",
 
50
  auth=auth,
51
  show_api=False,
52
  inline=False,
53
+ max_threads=8,
54
  )
55
  return demo
56