Ahsen Khaliq commited on
Commit
cc5dce6
·
1 Parent(s): f6932a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def inference(image):
13
  result = model.style_transfer(paths=[image.name])
14
  print(type(result[0]))
15
  print(result[0])
16
- return Image.fromarray(np.uint8(result[0])).convert('RGB')[:,:,::-1]
17
 
18
  title = "UGATIT-selfie2anime"
19
  description = "Gradio demo for DeOldify. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
 
13
  result = model.style_transfer(paths=[image.name])
14
  print(type(result[0]))
15
  print(result[0])
16
+ return Image.fromarray(np.uint8(result[0])[:,:,::-1]).convert('RGB')
17
 
18
  title = "UGATIT-selfie2anime"
19
  description = "Gradio demo for DeOldify. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."