Spaces:
Runtime error
Runtime error
wony617
commited on
Commit
•
c9615d3
1
Parent(s):
11c2a9e
fix: replace filepath_input Textbox to Dropdown
Browse files
app.py
CHANGED
@@ -163,9 +163,13 @@ with demo:
|
|
163 |
"도착어", "língua alvo"
|
164 |
])
|
165 |
)
|
166 |
-
|
|
|
|
|
167 |
value="tasks/masked_language_modeling.md",
|
168 |
-
label="File path of transformers document"
|
|
|
|
|
169 |
)
|
170 |
with gr.Tabs():
|
171 |
with gr.TabItem("Web UI"):
|
|
|
163 |
"도착어", "língua alvo"
|
164 |
])
|
165 |
)
|
166 |
+
filtpath_list = ["tasks/masked_language_modeling.md", "main_classes/callback.md"]
|
167 |
+
filepath_input = gr.Dropdown(
|
168 |
+
choices=filtpath_list,
|
169 |
value="tasks/masked_language_modeling.md",
|
170 |
+
label="File path of transformers document",
|
171 |
+
interactive=True,
|
172 |
+
allow_custom_value=True,
|
173 |
)
|
174 |
with gr.Tabs():
|
175 |
with gr.TabItem("Web UI"):
|