Update app.py
Browse files
app.py
CHANGED
|
@@ -718,7 +718,7 @@ Solution: Restart the Space to trigger rebuild."""
|
|
| 718 |
for config in Config.MODELS.values():
|
| 719 |
for source in config.get('sources', []):
|
| 720 |
alt = source.get('rename_to', '')
|
| 721 |
-
|
| 722 |
return str(Config.MODELS_DIR / alt)
|
| 723 |
|
| 724 |
return str(path) # Return original even if missing (for better error msg)
|
|
|
|
| 718 |
for config in Config.MODELS.values():
|
| 719 |
for source in config.get('sources', []):
|
| 720 |
alt = source.get('rename_to', '')
|
| 721 |
+
if alt and (Config.MODELS_DIR / alt).exists(): # ← Remove one )
|
| 722 |
return str(Config.MODELS_DIR / alt)
|
| 723 |
|
| 724 |
return str(path) # Return original even if missing (for better error msg)
|