jsulz HF staff commited on
Commit
ae2976d
1 Parent(s): f09a364

fixing mp4 extension

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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=by_extension["extension"].unique().tolist(),
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
  )