davanstrien HF Staff commited on
Commit
11718ca
·
1 Parent(s): fe62398

update requirements

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -100,20 +100,20 @@ def filter_df(columns_to_show=None):
100
  return df if columns_to_show is None else df[columns_to_show]
101
 
102
 
103
- # with gr.Blocks() as demo:
104
- # gr.Markdown("## Info about models in this collection")
105
- # gr.Markdown(generate_markdown_summary_of_collection(repos_grouped_by_type))
106
- # gr.Markdown("### Summary of missing metadata values")
107
- # gr.DataFrame(summary_of_na_values(df))
108
- # gr.Markdown("# Models in this collection")
109
- # with gr.Accordion("Models", open=False):
110
- # columns_to_show = gr.Dropdown(
111
- # label="Columns to show",
112
- # value=column_names,
113
- # choices=column_names,
114
- # multiselect=True,
115
- # )
116
- # models_df = gr.DataFrame(filter_df, datatype="markdown")
117
- # columns_to_show.change(filter_df, columns_to_show, models_df)
118
-
119
- # demo.launch(debug=True)
 
100
  return df if columns_to_show is None else df[columns_to_show]
101
 
102
 
103
+ with gr.Blocks() as demo:
104
+ gr.Markdown("## Info about models in this collection")
105
+ gr.Markdown(generate_markdown_summary_of_collection(repos_grouped_by_type))
106
+ gr.Markdown("### Summary of missing metadata values")
107
+ gr.DataFrame(summary_of_na_values(df))
108
+ gr.Markdown("# Models in this collection")
109
+ with gr.Accordion("Models", open=False):
110
+ columns_to_show = gr.Dropdown(
111
+ label="Columns to show",
112
+ value=column_names,
113
+ choices=column_names,
114
+ multiselect=True,
115
+ )
116
+ models_df = gr.DataFrame(filter_df, datatype="markdown")
117
+ columns_to_show.change(filter_df, columns_to_show, models_df)
118
+
119
+ demo.launch(debug=True)