Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ df, df_log = fetch_dataset_and_init()
|
|
| 32 |
def get_current_nb_models():
|
| 33 |
# We need this hack since `list_models` returns a generator..
|
| 34 |
total_models = sum(1 for _ in list_models)
|
| 35 |
-
diff_models = total_models -
|
| 36 |
return str(diff_models)
|
| 37 |
|
| 38 |
plot_height = 512
|
|
@@ -82,7 +82,7 @@ with gr.Blocks() as bar_plot:
|
|
| 82 |
plot = gr.BarPlot()
|
| 83 |
|
| 84 |
with gr.Row():
|
| 85 |
-
fetch_button = gr.Button(value="Fetch number of models without model cards (takes up to 1min to fetch everything)")
|
| 86 |
text_box = gr.Textbox(value="", label="Number of models without model cards")
|
| 87 |
|
| 88 |
top_k.change(bar_plot_fn, inputs=[display, top_k], outputs=plot)
|
|
|
|
| 32 |
def get_current_nb_models():
|
| 33 |
# We need this hack since `list_models` returns a generator..
|
| 34 |
total_models = sum(1 for _ in list_models)
|
| 35 |
+
diff_models = total_models - df["count"].sum()
|
| 36 |
return str(diff_models)
|
| 37 |
|
| 38 |
plot_height = 512
|
|
|
|
| 82 |
plot = gr.BarPlot()
|
| 83 |
|
| 84 |
with gr.Row():
|
| 85 |
+
fetch_button = gr.Button(value="Fetch current number of models without model cards (takes up to 1min to fetch everything)")
|
| 86 |
text_box = gr.Textbox(value="", label="Number of models without model cards")
|
| 87 |
|
| 88 |
top_k.change(bar_plot_fn, inputs=[display, top_k], outputs=plot)
|