Spaces:
Runtime error
Runtime error
root
commited on
Commit
·
798b219
1
Parent(s):
6fab2c1
update example to run on click
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ with gr.Blocks() as iface:
|
|
157 |
maximum=1.0,
|
158 |
value=0.8,
|
159 |
interactive=True,
|
160 |
-
label="Temperature (set to 0 for greedy decoding
|
161 |
)
|
162 |
|
163 |
len_penalty = gr.Slider(
|
@@ -166,7 +166,7 @@ with gr.Blocks() as iface:
|
|
166 |
value=1.0,
|
167 |
step=0.5,
|
168 |
interactive=True,
|
169 |
-
label="Length Penalty (larger value encourages longer sequence
|
170 |
)
|
171 |
|
172 |
rep_penalty = gr.Slider(
|
@@ -231,9 +231,8 @@ with gr.Blocks() as iface:
|
|
231 |
examples = gr.Examples(
|
232 |
examples=examples,
|
233 |
inputs=[image_input, chat_input],
|
234 |
-
|
235 |
fn = inference_chat,
|
236 |
-
outputs = [chatbot, state],
|
237 |
)
|
238 |
|
239 |
iface.queue(concurrency_count=1, api_open=False, max_size=10)
|
|
|
157 |
maximum=1.0,
|
158 |
value=0.8,
|
159 |
interactive=True,
|
160 |
+
label="Temperature (set to 0 for greedy decoding with nucleus sampling)",
|
161 |
)
|
162 |
|
163 |
len_penalty = gr.Slider(
|
|
|
166 |
value=1.0,
|
167 |
step=0.5,
|
168 |
interactive=True,
|
169 |
+
label="Length Penalty (larger value encourages longer sequence with beam search)",
|
170 |
)
|
171 |
|
172 |
rep_penalty = gr.Slider(
|
|
|
231 |
examples = gr.Examples(
|
232 |
examples=examples,
|
233 |
inputs=[image_input, chat_input],
|
234 |
+
run_on_click=True,
|
235 |
fn = inference_chat,
|
|
|
236 |
)
|
237 |
|
238 |
iface.queue(concurrency_count=1, api_open=False, max_size=10)
|