Spaces:
Running
Running
Commit
·
455bbbc
1
Parent(s):
26cd1e9
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def get_ckpt_names(token, radio_model_names, input_model):
|
|
| 32 |
|
| 33 |
try:
|
| 34 |
api = HfApi(token=token)
|
| 35 |
-
ckpt_files = [f for f in api.list_repo_files(repo_id=model_id) if f.endswith(".ckpt")]
|
| 36 |
|
| 37 |
if not ckpt_files:
|
| 38 |
return error_str("No checkpoint files found in the model repo."), gr.update(choices=[]), gr.update(visible=False)
|
|
|
|
| 32 |
|
| 33 |
try:
|
| 34 |
api = HfApi(token=token)
|
| 35 |
+
ckpt_files = [f for f in api.list_repo_files(repo_id=model_id) if f.endswith(".ckpt") or f.endswith(".safetensors")]
|
| 36 |
|
| 37 |
if not ckpt_files:
|
| 38 |
return error_str("No checkpoint files found in the model repo."), gr.update(choices=[]), gr.update(visible=False)
|