Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,13 @@ import sys
|
|
| 2 |
import os
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
-
# Add the StableCascade
|
| 6 |
-
|
| 7 |
-
sys.path.
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
|
| 13 |
import yaml
|
| 14 |
import torch
|
|
|
|
| 2 |
import os
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
+
# Add the StableCascade and CSD directories to the Python path
|
| 6 |
+
app_dir = Path(__file__).parent
|
| 7 |
+
sys.path.extend([
|
| 8 |
+
str(app_dir),
|
| 9 |
+
str(app_dir / "third_party" / "StableCascade"),
|
| 10 |
+
str(app_dir / "third_party" / "CSD")
|
| 11 |
+
])
|
| 12 |
|
| 13 |
import yaml
|
| 14 |
import torch
|