Spaces:
Running
Running
Commit
·
0fb4bd6
1
Parent(s):
4ee5487
refactor: update file upload component in app.py
Browse files
app.py
CHANGED
|
@@ -133,12 +133,8 @@ with gr.Blocks() as demo:
|
|
| 133 |
step=1,
|
| 134 |
)
|
| 135 |
private = gr.Checkbox(False, label="Upload dataset to a private repo?")
|
| 136 |
-
upload_button = gr.
|
| 137 |
-
"
|
| 138 |
-
file_types=[
|
| 139 |
-
"text",
|
| 140 |
-
],
|
| 141 |
-
file_count="multiple",
|
| 142 |
)
|
| 143 |
summary = gr.Markdown()
|
| 144 |
|
|
|
|
| 133 |
step=1,
|
| 134 |
)
|
| 135 |
private = gr.Checkbox(False, label="Upload dataset to a private repo?")
|
| 136 |
+
upload_button = gr.File(
|
| 137 |
+
file_types=["text"], file_count="multiple", height=50, interactive=True
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
)
|
| 139 |
summary = gr.Markdown()
|
| 140 |
|