merve HF Staff commited on
Commit
64f3730
·
1 Parent(s): 019c1d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,9 +4,8 @@ from PIL import Image
4
  # inference function takes prompt, negative prompt and image
5
  def infer(prompt, negative_prompt, image):
6
  # implement your inference function here
7
- with Image.open("cat_image.jpeg") as im:
8
- output_image = im
9
- return output_image
10
 
11
  title = "ControlNet on Canny Filter"
12
  description = "This is a demo on ControlNet based on canny filter."
 
4
  # inference function takes prompt, negative prompt and image
5
  def infer(prompt, negative_prompt, image):
6
  # implement your inference function here
7
+ im = Image.open("cat_image.jpeg")
8
+ return im
 
9
 
10
  title = "ControlNet on Canny Filter"
11
  description = "This is a demo on ControlNet based on canny filter."