Skip to content

Commit

Permalink
[gradio] added limit to requests (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankLeeeee committed Jun 19, 2024
1 parent 79d970c commit a4ba569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradio/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def main():
random_prompt_btn.click(fn=generate_random_prompt, outputs=prompt_text)

# launch
demo.launch(server_port=args.port, server_name=args.host, share=args.share)
demo.launch(server_port=args.port, server_name=args.host, share=args.share, max_threads=1)


if __name__ == "__main__":
Expand Down

0 comments on commit a4ba569

Please sign in to comment.