patrickvonplaten commited on
Commit
80f48e5
1 Parent(s): 1628cf8
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +2 -0
__pycache__/app.cpython-310.pyc ADDED
Binary file (1.09 kB). View file
 
app.py CHANGED
@@ -21,6 +21,8 @@ for model in models:
21
  if not is_counted:
22
  downloads["other"] += model.downloads
23
 
 
 
24
  # Sort the dictionary by keys
25
  sorted_dict = dict(sorted(downloads.items(), key=lambda item: item[1], reverse=True))
26
 
 
21
  if not is_counted:
22
  downloads["other"] += model.downloads
23
 
24
+ # Remove 0 downloads
25
+ downloads = {k: v for k,v in downloads.items() if v > 0}
26
  # Sort the dictionary by keys
27
  sorted_dict = dict(sorted(downloads.items(), key=lambda item: item[1], reverse=True))
28