EmanHassan26 commited on
Commit
064c240
·
verified ·
1 Parent(s): 9062672

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"