Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
47 |
invert_colors=False)
|
48 |
|
49 |
sketch2 = gr.Image(image_mode="L",
|
50 |
source="canvas",
|
51 |
type="filepath",
|
52 |
-
shape=
|
53 |
invert_colors=False)
|
54 |
|
55 |
|
56 |
def predict(frame1, frame2, times_to_interpolate):
|
57 |
|
58 |
-
|
59 |
-
|
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")
|