Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def run(action, hair, top, bottom):
|
|
103 |
file_name_target = './Sprite/frames/domain_2/' + action + '/'
|
104 |
file_name_target = file_name_target + 'front' + '_' + str(body_target) + str(bottom_target) + str(top_target) + str(hair_target) + '_'
|
105 |
|
106 |
-
|
107 |
|
108 |
return 'avatar_source.gif', 'avatar_target.gif'
|
109 |
|
@@ -111,6 +111,7 @@ def run(action, hair, top, bottom):
|
|
111 |
gr.Interface(
|
112 |
run,
|
113 |
inputs=[
|
|
|
114 |
gr.Radio(choices=["shoot", "slash", "spellcard", "thrust", "walk"], value="shoot"),
|
115 |
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
116 |
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
|
|
103 |
file_name_target = './Sprite/frames/domain_2/' + action + '/'
|
104 |
file_name_target = file_name_target + 'front' + '_' + str(body_target) + str(bottom_target) + str(top_target) + str(hair_target) + '_'
|
105 |
|
106 |
+
gif_target = display_gif_pad(file_name_target, 'avatar_target.gif')
|
107 |
|
108 |
return 'avatar_source.gif', 'avatar_target.gif'
|
109 |
|
|
|
111 |
gr.Interface(
|
112 |
run,
|
113 |
inputs=[
|
114 |
+
gr.Interpretation("Source Avatar")
|
115 |
gr.Radio(choices=["shoot", "slash", "spellcard", "thrust", "walk"], value="shoot"),
|
116 |
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
117 |
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|