Spaces:
Runtime error
Runtime error
fixing mp4 extension
Browse files
app.py
CHANGED
|
@@ -502,9 +502,14 @@ with gr.Blocks() as demo:
|
|
| 502 |
"To dig deeper, use the dropdown to filter by file extension and see the bytes added (in TBs) each month for specific file types."
|
| 503 |
)
|
| 504 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 505 |
# build a dropdown using the unique values in the extension column
|
| 506 |
extension = gr.Dropdown(
|
| 507 |
-
choices=
|
| 508 |
multiselect=True,
|
| 509 |
label="File Extension",
|
| 510 |
)
|
|
|
|
| 502 |
"To dig deeper, use the dropdown to filter by file extension and see the bytes added (in TBs) each month for specific file types."
|
| 503 |
)
|
| 504 |
|
| 505 |
+
# get the unique values in the extension column and remove any empty strings
|
| 506 |
+
extension_choices = [
|
| 507 |
+
x for x in by_extension_month["extension"].unique().tolist() if x != ""
|
| 508 |
+
]
|
| 509 |
+
|
| 510 |
# build a dropdown using the unique values in the extension column
|
| 511 |
extension = gr.Dropdown(
|
| 512 |
+
choices=extension_choices,
|
| 513 |
multiselect=True,
|
| 514 |
label="File Extension",
|
| 515 |
)
|