Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,7 @@ with gr.Blocks() as demo:
|
|
255 |
with gr.Column(scale=1):
|
256 |
count_by_dropdown = gr.Dropdown(
|
257 |
label="Metric",
|
258 |
-
choices=["downloads", "likes"],
|
259 |
value="downloads",
|
260 |
info="Select the metric to determine box sizes"
|
261 |
)
|
@@ -301,7 +301,8 @@ with gr.Blocks() as demo:
|
|
301 |
|
302 |
skip_orgs_textbox = gr.Textbox(
|
303 |
label="Organizations to Skip (comma-separated)",
|
304 |
-
placeholder="e.g.,
|
|
|
305 |
info="Enter names of organizations to exclude from the visualization"
|
306 |
)
|
307 |
|
@@ -350,7 +351,7 @@ with gr.Blocks() as demo:
|
|
350 |
fig = create_treemap(
|
351 |
treemap_data=treemap_data,
|
352 |
count_by=count_by,
|
353 |
-
title=f"HuggingFace Models - {count_by.capitalize()} by Organization"
|
354 |
)
|
355 |
|
356 |
# Generate statistics
|
@@ -366,9 +367,7 @@ with gr.Blocks() as demo:
|
|
366 |
## Statistics
|
367 |
- **Total models shown**: {total_models:,}
|
368 |
- **Total {count_by}**: {int(total_value):,}
|
369 |
-
|
370 |
## Top Organizations by {count_by.capitalize()}
|
371 |
-
|
372 |
| Organization | {count_by.capitalize()} | % of Total |
|
373 |
|--------------|--------:|--------:|"""
|
374 |
|
|
|
255 |
with gr.Column(scale=1):
|
256 |
count_by_dropdown = gr.Dropdown(
|
257 |
label="Metric",
|
258 |
+
choices=["downloads", "downloadsAllTime", "likes"],
|
259 |
value="downloads",
|
260 |
info="Select the metric to determine box sizes"
|
261 |
)
|
|
|
301 |
|
302 |
skip_orgs_textbox = gr.Textbox(
|
303 |
label="Organizations to Skip (comma-separated)",
|
304 |
+
placeholder="e.g., OpenAI, Google",
|
305 |
+
value="TheBloke, MaziyarPanahi, unsloth, modularai, Gensyn, bartowski",
|
306 |
info="Enter names of organizations to exclude from the visualization"
|
307 |
)
|
308 |
|
|
|
351 |
fig = create_treemap(
|
352 |
treemap_data=treemap_data,
|
353 |
count_by=count_by,
|
354 |
+
title=f"HuggingFace Models - {count_by.replace('AllTime', ' (All Time)').capitalize()} by Organization"
|
355 |
)
|
356 |
|
357 |
# Generate statistics
|
|
|
367 |
## Statistics
|
368 |
- **Total models shown**: {total_models:,}
|
369 |
- **Total {count_by}**: {int(total_value):,}
|
|
|
370 |
## Top Organizations by {count_by.capitalize()}
|
|
|
371 |
| Organization | {count_by.capitalize()} | % of Total |
|
372 |
|--------------|--------:|--------:|"""
|
373 |
|