Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,8 +55,8 @@ FPS = 24
|
|
| 55 |
print(f"=== Baixando snapshot do reposit贸rio base: {base_repo} ===")
|
| 56 |
ckpt_path_str = hf_hub_download(repo_id=base_repo, filename=checkpoint_path, cache_dir=CACHE_DIR)
|
| 57 |
ckpt_path = Path(ckpt_path_str)
|
| 58 |
-
|
| 59 |
-
|
| 60 |
|
| 61 |
# 3. Carregar cada componente da pipeline explicitamente
|
| 62 |
print("=== Carregando componentes da pipeline... ===")
|
|
|
|
| 55 |
print(f"=== Baixando snapshot do reposit贸rio base: {base_repo} ===")
|
| 56 |
ckpt_path_str = hf_hub_download(repo_id=base_repo, filename=checkpoint_path, cache_dir=CACHE_DIR)
|
| 57 |
ckpt_path = Path(ckpt_path_str)
|
| 58 |
+
if not ckpt_path.is_file():
|
| 59 |
+
raise FileNotFoundError(f"Main checkpoint file not found: {ckpt_path}")
|
| 60 |
|
| 61 |
# 3. Carregar cada componente da pipeline explicitamente
|
| 62 |
print("=== Carregando componentes da pipeline... ===")
|