breynolds1247 commited on
Commit
4fd82b8
1 Parent(s): ddd8afd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -64,7 +64,8 @@ def style_transfer(input_image, artist):
64
  print("stylized_image:")
65
  print(stylized_image[0])
66
  print(stylized_image)
67
- return tf.io.encode_jpeg(stylized_image[0])
 
68
 
69
  app = gr.Interface(
70
  style_transfer,
 
64
  print("stylized_image:")
65
  print(stylized_image[0])
66
  print(stylized_image)
67
+ #return tf.io.encode_jpeg(stylized_image[0])
68
+ return tf.keras.preprocessing.image.img_to_array(stylized_image[0])
69
 
70
  app = gr.Interface(
71
  style_transfer,