gaur3009 commited on
Commit
28d9e4e
·
verified ·
1 Parent(s): 13863ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -14,9 +14,7 @@ else:
14
  pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", use_safetensors=True)
15
  pipe = pipe.to(device)
16
 
17
- def edit_image(img_data, operation, *args):
18
- image = Image.open(img_data)
19
-
20
  if operation == "rotate":
21
  angle = int(args[0])
22
  image = image.rotate(angle, expand=True)
 
14
  pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", use_safetensors=True)
15
  pipe = pipe.to(device)
16
 
17
+ def edit_image(image, operation, *args):
 
 
18
  if operation == "rotate":
19
  angle = int(args[0])
20
  image = image.rotate(angle, expand=True)