multimodalart HF staff commited on
Commit
76b9122
1 Parent(s): 930b37d

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +2 -2
app_dialogue.py CHANGED
@@ -834,7 +834,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
834
  client = Client(
835
  base_url=client_endpoint,
836
  headers={"x-use-cache": "0", "Authorization": f"Bearer {API_TOKEN}"},
837
- timeout=60,
838
  )
839
 
840
  # Common parameters to all decoding strategies
@@ -1021,5 +1021,5 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
1021
  outputs=[template_gallery],
1022
  queue=False,
1023
  )
1024
- demo.queue(concurrency_count=4, max_size=40)
1025
  demo.launch(max_threads=400)
 
834
  client = Client(
835
  base_url=client_endpoint,
836
  headers={"x-use-cache": "0", "Authorization": f"Bearer {API_TOKEN}"},
837
+ timeout=45,
838
  )
839
 
840
  # Common parameters to all decoding strategies
 
1021
  outputs=[template_gallery],
1022
  queue=False,
1023
  )
1024
+ demo.queue(concurrency_count=2, max_size=40)
1025
  demo.launch(max_threads=400)