Skip to content

Commit

Permalink
allow for concurrency on generating transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Jun 11, 2024
1 parent 9675fb1 commit a45ce2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,13 @@ def generate_audio(file: str, openai_api_key: str = None) -> bytes:
allow_flagging=False,
clear_btn=None,
head=os.getenv("HEAD"),
concurrency_limit=20,
cache_examples="lazy",
)

demo.launch(

demo.queue(
max_size=20,
default_concurrency_limit=20,
).launch(
show_api=False,
)

0 comments on commit a45ce2f

Please sign in to comment.