Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -218,24 +218,24 @@ def gradio_worker(
|
|
218 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
219 |
msg = gr.Textbox()
|
220 |
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
|
240 |
img_tab.select(change_modality_image, [], [modality])
|
241 |
video_tab.select(change_modality_video, [], [modality])
|
|
|
218 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
219 |
msg = gr.Textbox()
|
220 |
|
221 |
+
with gr.Row():
|
222 |
+
submit_button = gr.Button("Submit", variant="primary")
|
223 |
+
undo_button = gr.Button("Undo")
|
224 |
+
clear_button = gr.ClearButton([chatbot, msg, img_path, audio_path, video_path, modality])
|
225 |
+
with gr.Row():
|
226 |
+
max_gen_len = gr.Slider(
|
227 |
+
minimum=1, maximum=args.model_max_seq_len // 2,
|
228 |
+
value=args.model_max_seq_len // 2, interactive=True,
|
229 |
+
label="Single-turn max response length",
|
230 |
+
)
|
231 |
+
gen_t = gr.Slider(
|
232 |
+
minimum=0, maximum=1, value=0.1, interactive=True,
|
233 |
+
label="Temperature",
|
234 |
+
)
|
235 |
+
top_p = gr.Slider(
|
236 |
+
minimum=0, maximum=1, value=0.75, interactive=True,
|
237 |
+
label="Top-p",
|
238 |
+
)
|
239 |
|
240 |
img_tab.select(change_modality_image, [], [modality])
|
241 |
video_tab.select(change_modality_video, [], [modality])
|