mrfakename commited on
Commit
1eba4a4
·
1 Parent(s): f4ac0dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ By [mrfakename](https://twitter.com/realmrfakename). Inspired by [@randomblock1'
44
  temp = gr.Slider(label="Temperature", minimum=0.1, maximum=1.5, value=0.7)
45
  maxlen = gr.Slider(label="Max Length", minimum=4, maximum=512, value=75)
46
  go = gr.Button("Generate", variant="primary")
47
- go.click(generate_text, inputs=[text, temp, maxlen], outputs=[text])
48
  examples = gr.Examples(
49
  [
50
  ['Write a detailed analogy between mathematics and a lighthouse.', 0.7, 75],
@@ -59,5 +59,5 @@ By [mrfakename](https://twitter.com/realmrfakename). Inspired by [@randomblock1'
59
  )
60
 
61
  if __name__ == "__main__":
62
- demo.launch(show_api=False)
63
 
 
44
  temp = gr.Slider(label="Temperature", minimum=0.1, maximum=1.5, value=0.7)
45
  maxlen = gr.Slider(label="Max Length", minimum=4, maximum=512, value=75)
46
  go = gr.Button("Generate", variant="primary")
47
+ go.click(generate_text, inputs=[text, temp, maxlen], outputs=[text], concurrency_limit=2)
48
  examples = gr.Examples(
49
  [
50
  ['Write a detailed analogy between mathematics and a lighthouse.', 0.7, 75],
 
59
  )
60
 
61
  if __name__ == "__main__":
62
+ demo.queue().launch(show_api=False)
63