Commit
•
e4f3e8d
1
Parent(s):
5ecc3e2
foramtting
Browse files
app.py
CHANGED
@@ -71,16 +71,17 @@ def return_models_for_base_model(base_model):
|
|
71 |
results = ""
|
72 |
results += f"## Models fine-tuned from [`{base_model}`](https://huggingface.co/{base_model}) \n\n"
|
73 |
results += f"`{base_model}` has {len(models)} children\n\n"
|
74 |
-
results += "### Children models \n\n"
|
75 |
total_download_number = sum(model.downloads for model in models)
|
76 |
results += (
|
77 |
f"`{base_model}`'s children have been"
|
78 |
f" downloaded {total_download_number:,} times\n\n"
|
79 |
)
|
|
|
80 |
for model in models:
|
81 |
url = f"https://huggingface.co/{model.modelId}"
|
82 |
results += (
|
83 |
-
f"[{model.modelId}]({url}) | number of downloads {model.downloads}"
|
|
|
84 |
)
|
85 |
return results
|
86 |
|
|
|
71 |
results = ""
|
72 |
results += f"## Models fine-tuned from [`{base_model}`](https://huggingface.co/{base_model}) \n\n"
|
73 |
results += f"`{base_model}` has {len(models)} children\n\n"
|
|
|
74 |
total_download_number = sum(model.downloads for model in models)
|
75 |
results += (
|
76 |
f"`{base_model}`'s children have been"
|
77 |
f" downloaded {total_download_number:,} times\n\n"
|
78 |
)
|
79 |
+
results += "### Children models \n\n"
|
80 |
for model in models:
|
81 |
url = f"https://huggingface.co/{model.modelId}"
|
82 |
results += (
|
83 |
+
f"- [{model.modelId}]({url}) | number of downloads {model.downloads}"
|
84 |
+
+ "\n\n"
|
85 |
)
|
86 |
return results
|
87 |
|