yupikopi commited on
Commit
fc0fac4
·
1 Parent(s): 62062d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,8 +24,8 @@ def sepia(inp):
24
  sepia_img = sepia_img / 255.0
25
  sepia_img = model.predict(sepia_img)
26
  sepia_img = sepia_img*255
27
- #sepia_img = sepia_img.reshape(img_height, img_width, 3)
28
  sepia_img = Image.fromarray(sepia_img)
 
29
  return sepia_img
30
 
31
  demo = gr.Interface(fn=sepia, inputs=gr.inputs.Image(256,256),outputs="image").launch()
 
24
  sepia_img = sepia_img / 255.0
25
  sepia_img = model.predict(sepia_img)
26
  sepia_img = sepia_img*255
 
27
  sepia_img = Image.fromarray(sepia_img)
28
+ sepia_img = sepia_img.reshape(img_height, img_width, 3)
29
  return sepia_img
30
 
31
  demo = gr.Interface(fn=sepia, inputs=gr.inputs.Image(256,256),outputs="image").launch()