Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -22,14 +22,10 @@ fi
|
|
| 22 |
|
| 23 |
python3 - <<'PY'
|
| 24 |
import os
|
| 25 |
-
from services.vince_server import
|
| 26 |
try:
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
if not server.ready():
|
| 30 |
-
print("Setup finalizado, mas checkpoint incompleto dit.pth vae.pth ausentes.")
|
| 31 |
-
else:
|
| 32 |
-
print("Setup conclu铆do: reposit贸rio e checkpoint prontos para infer锚ncia.")
|
| 33 |
except Exception as e:
|
| 34 |
print("Erro no setup")
|
| 35 |
PY
|
|
|
|
| 22 |
|
| 23 |
python3 - <<'PY'
|
| 24 |
import os
|
| 25 |
+
from services.vince_server import VinceServer
|
| 26 |
try:
|
| 27 |
+
VinceServer.ensure_repo()
|
| 28 |
+
VinceServer.ensure_model_all()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
except Exception as e:
|
| 30 |
print("Erro no setup")
|
| 31 |
PY
|