Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def display_image(file_name):
|
|
| 64 |
imageio.imwrite('image.png', image)
|
| 65 |
|
| 66 |
|
| 67 |
-
def run(
|
| 68 |
|
| 69 |
# == Source Avatar ==
|
| 70 |
# body
|
|
@@ -112,11 +112,12 @@ def run(domain, action, hair, top, bottom):
|
|
| 112 |
gr.Interface(
|
| 113 |
run,
|
| 114 |
inputs=[
|
| 115 |
-
gr.Textbox(value="Source Avatar", interactive=False),
|
| 116 |
gr.Radio(choices=["shoot", "slash", "spellcard", "thrust", "walk"], value="shoot"),
|
| 117 |
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
| 118 |
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
| 119 |
gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
|
|
|
|
| 120 |
],
|
| 121 |
outputs=[
|
| 122 |
gr.components.Image(type="file", label="Source Avatar (Costumed by You)"),
|
|
|
|
| 64 |
imageio.imwrite('image.png', image)
|
| 65 |
|
| 66 |
|
| 67 |
+
def run(domain_source, action, hair, top, bottom, domain_target):
|
| 68 |
|
| 69 |
# == Source Avatar ==
|
| 70 |
# body
|
|
|
|
| 112 |
gr.Interface(
|
| 113 |
run,
|
| 114 |
inputs=[
|
| 115 |
+
gr.Textbox(value="Source Avatar: Human", interactive=False),
|
| 116 |
gr.Radio(choices=["shoot", "slash", "spellcard", "thrust", "walk"], value="shoot"),
|
| 117 |
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
| 118 |
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
| 119 |
gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
|
| 120 |
+
gr.Textbox(value="Target Avatar: Alien", interactive=False),
|
| 121 |
],
|
| 122 |
outputs=[
|
| 123 |
gr.components.Image(type="file", label="Source Avatar (Costumed by You)"),
|