Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def attempt_download_from_hub(repo_id, hf_token=None):
|
|
33 |
from huggingface_hub.utils._validators import HFValidationError
|
34 |
try:
|
35 |
repo_files = list_repo_files(repo_id=repo_id, repo_type='model', token=hf_token)
|
36 |
-
model_file = [f for f in repo_files if f.endswith('.
|
37 |
file = hf_hub_download(
|
38 |
repo_id=repo_id,
|
39 |
filename=model_file,
|
|
|
33 |
from huggingface_hub.utils._validators import HFValidationError
|
34 |
try:
|
35 |
repo_files = list_repo_files(repo_id=repo_id, repo_type='model', token=hf_token)
|
36 |
+
model_file = [f for f in repo_files if f.endswith('.safetensors')][0]
|
37 |
file = hf_hub_download(
|
38 |
repo_id=repo_id,
|
39 |
filename=model_file,
|