DemiPoto commited on
Commit
1366623
·
verified ·
1 Parent(s): fd37e96

Update all_models2.py

Browse files
Files changed (1) hide show
  1. all_models2.py +4 -1
all_models2.py CHANGED
@@ -21,10 +21,13 @@ def find_model_list(author: str="", tags: list[str]=[], not_tag="", sort: str="l
21
  print(f"Error: Failed to list models.")
22
  print(e)
23
  return models
24
- print(type(model_infos[0].DatasetInfo))
25
  for model in model_infos:
26
 
27
  if not model.private and not model.gated:
 
 
 
28
  loadable = True
29
  if not_tag and not_tag in model.tags or not loadable: continue
30
  if model.id not in bad_models :
 
21
  print(f"Error: Failed to list models.")
22
  print(e)
23
  return models
24
+ t1=true
25
  for model in model_infos:
26
 
27
  if not model.private and not model.gated:
28
+ if t1:
29
+ print(model)
30
+ t1=False
31
  loadable = True
32
  if not_tag and not_tag in model.tags or not loadable: continue
33
  if model.id not in bad_models :