fdaudens HF staff commited on
Commit
8aa0325
β€’
1 Parent(s): 9981d93

model type

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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("# Recently Created Models on Hugging Face")
44
- gr.Markdown("Filter recent models from the Hugging Face Hub based on minimum likes and the number of days ago they were created.")
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", "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)