Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,10 @@ import shutil
|
|
| 15 |
from urllib.parse import urlparse
|
| 16 |
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# --- Model Loading ---
|
| 19 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 20 |
|
|
|
|
| 15 |
from urllib.parse import urlparse
|
| 16 |
|
| 17 |
|
| 18 |
+
MAX_SEED = np.iinfo(np.int32).max
|
| 19 |
+
MAX_IMAGE_SIZE = 2048
|
| 20 |
+
|
| 21 |
+
|
| 22 |
# --- Model Loading ---
|
| 23 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 24 |
|