kadirnar commited on
Commit
8be205e
1 Parent(s): f4f64b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('.pt')][0]
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,