Update app.py
Browse files
app.py
CHANGED
|
@@ -270,7 +270,7 @@ model.load_state_dict(torch.load('TransferVAE.pth.tar', map_location=torch.devic
|
|
| 270 |
model.eval()
|
| 271 |
|
| 272 |
|
| 273 |
-
def run(action_source, hair_source, top_source, bottom_source,
|
| 274 |
|
| 275 |
# == Source Avatar ==
|
| 276 |
# body
|
|
@@ -390,14 +390,18 @@ gr.Interface(
|
|
| 390 |
inputs=[
|
| 391 |
gr.Markdown(
|
| 392 |
"""
|
| 393 |
-
Source Avatar - Human
|
| 394 |
"""
|
| 395 |
),
|
| 396 |
gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
|
| 397 |
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
| 398 |
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
| 399 |
gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
|
| 400 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 401 |
gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
|
| 402 |
gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
|
| 403 |
gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
|
|
|
|
| 270 |
model.eval()
|
| 271 |
|
| 272 |
|
| 273 |
+
def run(action_source, hair_source, top_source, bottom_source, action_target, hair_target, top_target, bottom_target):
|
| 274 |
|
| 275 |
# == Source Avatar ==
|
| 276 |
# body
|
|
|
|
| 390 |
inputs=[
|
| 391 |
gr.Markdown(
|
| 392 |
"""
|
| 393 |
+
Source Avatar - Human π¦π»
|
| 394 |
"""
|
| 395 |
),
|
| 396 |
gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
|
| 397 |
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
| 398 |
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
| 399 |
gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
|
| 400 |
+
gr.Markdown(
|
| 401 |
+
"""
|
| 402 |
+
Target Avatar - Alien π½
|
| 403 |
+
"""
|
| 404 |
+
),
|
| 405 |
gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
|
| 406 |
gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
|
| 407 |
gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
|