ifire commited on
Commit
7b56fcc
·
1 Parent(s): 27aa20b

Update min_len default value to 50 and add share=True to launch method

Browse files

- Update min_len default value from 100 to 50
- Add share=True parameter to the launch method

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False,css=css) as demo:
68
  min_len = gr.Slider(
69
  minimum=1,
70
  maximum=100,
71
- value=100,
72
  step=1,
73
  interactive=True,
74
  label="Min Length",
@@ -135,4 +135,4 @@ with gr.Blocks(theme=theme, analytics_enabled=False,css=css) as demo:
135
 
136
  submit.click(infer, inputs=[image_input, prompt_textbox, min_len, max_len, beam_size, len_penalty, repetition_penalty, top_p, sampling], outputs=[output])
137
 
138
- demo.queue(concurrency_count=16).launch(debug=True)
 
68
  min_len = gr.Slider(
69
  minimum=1,
70
  maximum=100,
71
+ value=50,
72
  step=1,
73
  interactive=True,
74
  label="Min Length",
 
135
 
136
  submit.click(infer, inputs=[image_input, prompt_textbox, min_len, max_len, beam_size, len_penalty, repetition_penalty, top_p, sampling], outputs=[output])
137
 
138
+ demo.queue(concurrency_count=16).launch(debug=True, share=True,)