Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,11 @@ import torch
|
|
7 |
import subprocess
|
8 |
from pathlib import Path
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
# Verifica la disponibilità della GPU
|
11 |
print("CUDA disponibile:", torch.cuda.is_available())
|
12 |
if torch.cuda.is_available():
|
|
|
7 |
import subprocess
|
8 |
from pathlib import Path
|
9 |
|
10 |
+
if not os.path.exists("Open-Sora"):
|
11 |
+
print("Esecuzione setup iniziale...")
|
12 |
+
subprocess.run(["bash", "setup.sh"], check=True)
|
13 |
+
print("Setup completato!")
|
14 |
+
|
15 |
# Verifica la disponibilità della GPU
|
16 |
print("CUDA disponibile:", torch.cuda.is_available())
|
17 |
if torch.cuda.is_available():
|