Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,14 @@ def display_gif(file_name):
|
|
40 |
return imageio.mimsave(gif_filename, images)
|
41 |
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
def path(action, body, hair, top, bottom):
|
44 |
|
45 |
# body
|
@@ -67,9 +75,9 @@ def path(action, body, hair, top, bottom):
|
|
67 |
name = './Sprite/frames/domain_1/' + action + '/'
|
68 |
name = name + 'front' + '_' + str(body) + str(bottom) + str(top) + str(hair) + '_'
|
69 |
|
70 |
-
gif =
|
71 |
|
72 |
-
return '
|
73 |
|
74 |
|
75 |
gr.Interface(
|
|
|
40 |
return imageio.mimsave(gif_filename, images)
|
41 |
|
42 |
|
43 |
+
def display_image(file_name):
|
44 |
+
|
45 |
+
image_filename = file_name + '0' + '.png'
|
46 |
+
print(image_filename)
|
47 |
+
image = imageio.imread(image_filename)
|
48 |
+
imageio.imwrite(image, 'image.png')
|
49 |
+
|
50 |
+
|
51 |
def path(action, body, hair, top, bottom):
|
52 |
|
53 |
# body
|
|
|
75 |
name = './Sprite/frames/domain_1/' + action + '/'
|
76 |
name = name + 'front' + '_' + str(body) + str(bottom) + str(top) + str(hair) + '_'
|
77 |
|
78 |
+
gif = display_image(name)
|
79 |
|
80 |
+
return 'image.png'
|
81 |
|
82 |
|
83 |
gr.Interface(
|