devingulliver commited on
Commit
5719e80
1 Parent(s): 1bd24b1

Clean up code

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,13 +72,13 @@ with gr.Blocks(css=".gradio-container{max-width:95%!important} .tab-buttons butt
72
  typefilter = gr.CheckboxGroup(show_label=False, choices=list(data["Type"].unique()), value=[n for n in data["Type"].unique() if n not in ["⏳ Pending"]])
73
 
74
  with gr.Column():
75
- archfilter = gr.CheckboxGroup(label="Filter by model architecture", choices=[n for n in list(data["Architecture"].unique()) if n != "Transformer"], value=[n for n in list(data["Architecture"].unique()) if n != "Transformer"])
76
  sizefilter = gr.CheckboxGroup(label="Filter by model size", choices=list(data["Model Size"].unique()), value=list(data["Model Size"].unique()))
77
 
78
  with gr.Column():
79
  colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns)[2:], value=["Architecture","Model Size","Base Model"])
80
 
81
- table = gr.Dataframe(filter_table(["Architecture","Model Size","Base Model"],"",[n for n in data["Type"].unique() if n not in ["⏳ Pending"]],[n for n in list(data["Architecture"].unique()) if n != "Transformer"],list(data["Model Size"].unique())), datatype="markdown")
82
 
83
  # actions
84
 
 
72
  typefilter = gr.CheckboxGroup(show_label=False, choices=list(data["Type"].unique()), value=[n for n in data["Type"].unique() if n not in ["⏳ Pending"]])
73
 
74
  with gr.Column():
75
+ archfilter = gr.CheckboxGroup(label="Filter by model architecture", choices=list(archlinks.keys()), value=list(archlinks.keys()))
76
  sizefilter = gr.CheckboxGroup(label="Filter by model size", choices=list(data["Model Size"].unique()), value=list(data["Model Size"].unique()))
77
 
78
  with gr.Column():
79
  colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns)[2:], value=["Architecture","Model Size","Base Model"])
80
 
81
+ table = gr.Dataframe(filter_table(["Architecture","Model Size","Base Model"],"",[n for n in data["Type"].unique() if n not in ["⏳ Pending"]],list(archlinks.keys()),list(data["Model Size"].unique())), datatype="markdown")
82
 
83
  # actions
84