Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ except Exception as e:
|
|
82 |
os.makedirs("/tmp/static", exist_ok=True)
|
83 |
os.makedirs("/tmp/uploads", exist_ok=True)
|
84 |
os.makedirs("/tmp/temp", exist_ok=True)
|
85 |
-
app.mount("/static", StaticFiles(directory="static"), name="static")
|
86 |
|
87 |
# Set device for model inference
|
88 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
82 |
os.makedirs("/tmp/static", exist_ok=True)
|
83 |
os.makedirs("/tmp/uploads", exist_ok=True)
|
84 |
os.makedirs("/tmp/temp", exist_ok=True)
|
85 |
+
app.mount("/static", StaticFiles(directory="/tmp/static"), name="static")
|
86 |
|
87 |
# Set device for model inference
|
88 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|