Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ from diffusers import ControlNetModel, StableDiffusionControlNetPipeline, UniPCM
|
|
| 13 |
|
| 14 |
# Programmatically add the repository to PyTorch Hub's trusted list
|
| 15 |
torch.hub.set_dir('/root/.cache/torch/hub') # Optional: ensures clean cache path
|
| 16 |
-
torch.hub.trusted_list.append("rwightman/gen-efficientnet-pytorch")
|
| 17 |
-
torch.hub.trusted_list.append("intel-isl/MiDaS")
|
| 18 |
|
| 19 |
|
| 20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 13 |
|
| 14 |
# Programmatically add the repository to PyTorch Hub's trusted list
|
| 15 |
torch.hub.set_dir('/root/.cache/torch/hub') # Optional: ensures clean cache path
|
| 16 |
+
#torch.hub.trusted_list.append("rwightman/gen-efficientnet-pytorch")
|
| 17 |
+
#torch.hub.trusted_list.append("intel-isl/MiDaS")
|
| 18 |
|
| 19 |
|
| 20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|