Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -152,21 +152,24 @@ with gr.Blocks(css="style.css") as demo:
|
|
152 |
value="Beam search",
|
153 |
)
|
154 |
temperature = gr.Slider(
|
155 |
-
label="Temperature
|
|
|
156 |
minimum=0.5,
|
157 |
maximum=1.0,
|
158 |
value=1.0,
|
159 |
step=0.1,
|
160 |
)
|
161 |
length_penalty = gr.Slider(
|
162 |
-
label="Length Penalty
|
|
|
163 |
minimum=-1.0,
|
164 |
maximum=2.0,
|
165 |
value=1.0,
|
166 |
step=0.2,
|
167 |
)
|
168 |
rep_penalty = gr.Slider(
|
169 |
-
label="Repeat Penalty
|
|
|
170 |
minimum=1.0,
|
171 |
maximum=5.0,
|
172 |
value=1.5,
|
@@ -176,13 +179,13 @@ with gr.Blocks(css="style.css") as demo:
|
|
176 |
with gr.Column():
|
177 |
with gr.Box():
|
178 |
caption_button = gr.Button(value="Caption it!")
|
179 |
-
caption_output = gr.Textbox(label="Caption Output", show_label=False)
|
180 |
with gr.Column():
|
181 |
with gr.Box():
|
182 |
chatbot = gr.Chatbot(label="VQA Chat")
|
183 |
history_orig = gr.State(value=[])
|
184 |
history_qa = gr.State(value=[])
|
185 |
-
vqa_input = gr.Text(label="Chat Input", show_label=False, max_lines=1)
|
186 |
with gr.Row():
|
187 |
clear_chat_button = gr.Button(value="Clear")
|
188 |
chat_button = gr.Button(value="Submit")
|
|
|
152 |
value="Beam search",
|
153 |
)
|
154 |
temperature = gr.Slider(
|
155 |
+
label="Temperature",
|
156 |
+
info="Used with nucleus sampling.",
|
157 |
minimum=0.5,
|
158 |
maximum=1.0,
|
159 |
value=1.0,
|
160 |
step=0.1,
|
161 |
)
|
162 |
length_penalty = gr.Slider(
|
163 |
+
label="Length Penalty",
|
164 |
+
info="Set to larger for longer sequence, used with beam search.",
|
165 |
minimum=-1.0,
|
166 |
maximum=2.0,
|
167 |
value=1.0,
|
168 |
step=0.2,
|
169 |
)
|
170 |
rep_penalty = gr.Slider(
|
171 |
+
label="Repeat Penalty",
|
172 |
+
info="Larger value prevents repetition.",
|
173 |
minimum=1.0,
|
174 |
maximum=5.0,
|
175 |
value=1.5,
|
|
|
179 |
with gr.Column():
|
180 |
with gr.Box():
|
181 |
caption_button = gr.Button(value="Caption it!")
|
182 |
+
caption_output = gr.Textbox(label="Caption Output", show_label=False)
|
183 |
with gr.Column():
|
184 |
with gr.Box():
|
185 |
chatbot = gr.Chatbot(label="VQA Chat")
|
186 |
history_orig = gr.State(value=[])
|
187 |
history_qa = gr.State(value=[])
|
188 |
+
vqa_input = gr.Text(label="Chat Input", show_label=False, max_lines=1)
|
189 |
with gr.Row():
|
190 |
clear_chat_button = gr.Button(value="Clear")
|
191 |
chat_button = gr.Button(value="Submit")
|