devingulliver commited on
Commit
e98b562
1 Parent(s): 356fe31

Move UI components around

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -57,17 +57,19 @@ with gr.Blocks() as demo:
57
  with gr.Row():
58
  with gr.Column():
59
  namefilter = gr.Textbox(max_lines=1, label="Search by model name and hit Enter")
60
- colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns))
61
-
62
- with gr.Column():
63
  typefilter = gr.CheckboxGroup(label="Filter by model type", choices=list(data["Type"].unique()), value=[n for n in data["Type"].unique() if n not in ["Pending"]])
64
 
65
  with gr.Column():
66
  archfilter = gr.CheckboxGroup(label="Filter by model architecture", choices=list(data["Architecture"].unique()), value=list(data["Architecture"].unique()))
67
  lcnsfilter = gr.CheckboxGroup(label="Filter by model license", choices=list(data["License"].unique()), value=list(data["License"].unique()))
 
 
 
68
 
69
  table = gr.Dataframe(datatype="markdown")
70
 
 
 
71
  namefilter.submit(filter_table, [colfilter,namefilter,typefilter,archfilter,lcnsfilter], table)
72
 
73
  for filter in [colfilter,typefilter,archfilter,lcnsfilter]:
 
57
  with gr.Row():
58
  with gr.Column():
59
  namefilter = gr.Textbox(max_lines=1, label="Search by model name and hit Enter")
 
 
 
60
  typefilter = gr.CheckboxGroup(label="Filter by model type", choices=list(data["Type"].unique()), value=[n for n in data["Type"].unique() if n not in ["Pending"]])
61
 
62
  with gr.Column():
63
  archfilter = gr.CheckboxGroup(label="Filter by model architecture", choices=list(data["Architecture"].unique()), value=list(data["Architecture"].unique()))
64
  lcnsfilter = gr.CheckboxGroup(label="Filter by model license", choices=list(data["License"].unique()), value=list(data["License"].unique()))
65
+
66
+ with gr.Column():
67
+ colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns))
68
 
69
  table = gr.Dataframe(datatype="markdown")
70
 
71
+ # actions
72
+
73
  namefilter.submit(filter_table, [colfilter,namefilter,typefilter,archfilter,lcnsfilter], table)
74
 
75
  for filter in [colfilter,typefilter,archfilter,lcnsfilter]: