Update app.py
Browse files
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)
|
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 |
|