rahulnamdev commited on
Commit
9e97df9
·
verified ·
1 Parent(s): bfcb1b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,8 +9,8 @@ import os
9
  #agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
10
 
11
  # Access HF Hub
12
- import huggingface_hub
13
- all_Hf_models_stats = huggingface_hub.HfApi().list_models()
14
- print(len(all_Hf_models_stats))
15
- print(modeall_Hf_models_statsls[0].modelId)
16
 
 
9
  #agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
10
 
11
  # Access HF Hub
12
+ from huggingface_hub import list_models
13
+
14
+ for model in list_models(limit=10, sort="downloads", direction=-1, filter="object-detection"):
15
+ print(model.id, model.downloads)
16