fffiloni commited on
Commit
69a6745
β€’
1 Parent(s): 3d4ec8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,20 +43,20 @@ def resize_img(img1,img2):
43
  sketch1 = gr.Image(image_mode="L",
44
  source="canvas",
45
  type="filepath",
46
- shape=(400, 400),
47
  invert_colors=False)
48
 
49
  sketch2 = gr.Image(image_mode="L",
50
  source="canvas",
51
  type="filepath",
52
- shape=(400, 400),
53
  invert_colors=False)
54
 
55
 
56
  def predict(frame1, frame2, times_to_interpolate):
57
 
58
- #frame1 = resize(256,frame1)
59
- #frame2 = resize(256,frame2)
60
 
61
  frame1.save("test1.png")
62
  frame2.save("test2.png")
 
43
  sketch1 = gr.Image(image_mode="L",
44
  source="canvas",
45
  type="filepath",
46
+ shape=None,
47
  invert_colors=False)
48
 
49
  sketch2 = gr.Image(image_mode="L",
50
  source="canvas",
51
  type="filepath",
52
+ shape=None,
53
  invert_colors=False)
54
 
55
 
56
  def predict(frame1, frame2, times_to_interpolate):
57
 
58
+ frame1 = resize(256,frame1)
59
+ frame2 = resize(256,frame2)
60
 
61
  frame1.save("test1.png")
62
  frame2.save("test2.png")