Spaces:
Running
Running
Zenith Wang
commited on
Commit
·
50845b1
1
Parent(s):
0c31809
Fix File component configuration for Gradio 4.19.2 compatibility
Browse files
app.py
CHANGED
@@ -288,11 +288,9 @@ with gr.Blocks(title="Step-3", theme=gr.themes.Soft(), css=css) as demo:
|
|
288 |
image_input = gr.File(
|
289 |
label="Images",
|
290 |
file_count="multiple",
|
291 |
-
file_types=["
|
292 |
-
height=100,
|
293 |
interactive=True,
|
294 |
-
show_label=True
|
295 |
-
elem_classes="compact-image"
|
296 |
)
|
297 |
with gr.Column(scale=1, min_width=100):
|
298 |
submit_btn = gr.Button("Send", variant="primary")
|
|
|
288 |
image_input = gr.File(
|
289 |
label="Images",
|
290 |
file_count="multiple",
|
291 |
+
file_types=[".png", ".jpg", ".jpeg", ".gif", ".webp"],
|
|
|
292 |
interactive=True,
|
293 |
+
show_label=True
|
|
|
294 |
)
|
295 |
with gr.Column(scale=1, min_width=100):
|
296 |
submit_btn = gr.Button("Send", variant="primary")
|