Update app.py
Browse files
app.py
CHANGED
@@ -27,14 +27,22 @@ class Generator(nn.Module):
|
|
27 |
return output
|
28 |
|
29 |
|
30 |
-
def
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
return name
|
33 |
|
34 |
|
35 |
gr.Interface(
|
36 |
-
|
37 |
inputs=[
|
|
|
38 |
gr.Radio(["human", "alien"]),
|
39 |
gr.Slider(0, 5, label='Hair', step=1, default=0),
|
40 |
gr.Slider(0, 3, label='Top', step=1, default=0),
|
|
|
27 |
return output
|
28 |
|
29 |
|
30 |
+
def path(action, body, hair, top, bottom):
|
31 |
+
|
32 |
+
# body
|
33 |
+
if body == "human": body = '0'
|
34 |
+
elif body == "alien": body = '1'
|
35 |
+
|
36 |
+
# hair
|
37 |
+
|
38 |
+
name = action + str(body) + str(hair) + str(top) + str(bottom)
|
39 |
return name
|
40 |
|
41 |
|
42 |
gr.Interface(
|
43 |
+
path,
|
44 |
inputs=[
|
45 |
+
gr.Radio(["shoot", "slash", "spellcard", "thrust", "walk"]),
|
46 |
gr.Radio(["human", "alien"]),
|
47 |
gr.Slider(0, 5, label='Hair', step=1, default=0),
|
48 |
gr.Slider(0, 3, label='Top', step=1, default=0),
|