Spaces:
Running
Running
model type
Browse files
app.py
CHANGED
@@ -40,9 +40,8 @@ def get_recent_models(min_likes, days_ago):
|
|
40 |
|
41 |
# Define the Gradio interface
|
42 |
with gr.Blocks() as demo:
|
43 |
-
gr.Markdown("#
|
44 |
-
gr.Markdown("
|
45 |
-
|
46 |
with gr.Row():
|
47 |
likes_slider = gr.Slider(minimum=0, maximum=100, step=10, value=10, label="Minimum Likes")
|
48 |
days_slider = gr.Slider(minimum=1, maximum=7, step=1, value=1, label="Days Ago")
|
@@ -53,8 +52,7 @@ with gr.Blocks() as demo:
|
|
53 |
df = gr.DataFrame(
|
54 |
headers=["Model ID", "Likes", "Creation Date", "Task"],
|
55 |
wrap=True,
|
56 |
-
datatype=["html", "number", "str"
|
57 |
-
interactive=True
|
58 |
)
|
59 |
|
60 |
btn.click(fn=get_recent_models, inputs=[likes_slider, days_slider], outputs=df)
|
|
|
40 |
|
41 |
# Define the Gradio interface
|
42 |
with gr.Blocks() as demo:
|
43 |
+
gr.Markdown("# Model Drops Tracker π")
|
44 |
+
gr.Markdown("Overwhelmed by the rapid pace of model releases? π
You're not alone! That's exactly why I built this tool. Easily filter recent models from the Hub by setting a minimum number of likes and the number of days since their release. Click on a model to see its card.")
|
|
|
45 |
with gr.Row():
|
46 |
likes_slider = gr.Slider(minimum=0, maximum=100, step=10, value=10, label="Minimum Likes")
|
47 |
days_slider = gr.Slider(minimum=1, maximum=7, step=1, value=1, label="Days Ago")
|
|
|
52 |
df = gr.DataFrame(
|
53 |
headers=["Model ID", "Likes", "Creation Date", "Task"],
|
54 |
wrap=True,
|
55 |
+
datatype=["html", "number", "str"],
|
|
|
56 |
)
|
57 |
|
58 |
btn.click(fn=get_recent_models, inputs=[likes_slider, days_slider], outputs=df)
|