Spaces:
Runtime error
Runtime error
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
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=
|
| 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,)
|