gaur3009 commited on
Commit
feaab3e
·
verified ·
1 Parent(s): 7a99816

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def process(input_image, prompt, low_threshold, high_threshold):
21
 
22
  # Convert to tensor and process with model
23
  with torch.no_grad():
24
- c_t = transforms.ToTensor()(canny).unsqueeze(0).cuda()
25
  output_image = model(c_t, prompt)
26
  output_pil = transforms.ToPILImage()(output_image[0].cpu() * 0.5 + 0.5)
27
 
 
21
 
22
  # Convert to tensor and process with model
23
  with torch.no_grad():
24
+ c_t = transforms.ToTensor()(canny).unsqueeze(0)
25
  output_image = model(c_t, prompt)
26
  output_pil = transforms.ToPILImage()(output_image[0].cpu() * 0.5 + 0.5)
27