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(domain_source,
|
| 68 |
|
| 69 |
# == Source Avatar ==
|
| 70 |
# body
|
|
@@ -113,11 +113,15 @@ gr.Interface(
|
|
| 113 |
run,
|
| 114 |
inputs=[
|
| 115 |
gr.Textbox(value="Source Avatar: Human", interactive=False),
|
| 116 |
-
gr.Radio(choices=["
|
| 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)"),
|
|
|
|
| 64 |
imageio.imwrite('image.png', image)
|
| 65 |
|
| 66 |
|
| 67 |
+
def run(domain_source, action_source, hair_source, top_source, bottom_source, domain_target, action_source, hair_source, top_source, bottom_source):
|
| 68 |
|
| 69 |
# == Source Avatar ==
|
| 70 |
# body
|
|
|
|
| 113 |
run,
|
| 114 |
inputs=[
|
| 115 |
gr.Textbox(value="Source Avatar: Human", interactive=False),
|
| 116 |
+
gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
|
| 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 |
+
gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
|
| 122 |
+
gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
|
| 123 |
+
gr.Radio(choices=["brown", "blue", "white"], value="brown"),
|
| 124 |
+
gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
|
| 125 |
],
|
| 126 |
outputs=[
|
| 127 |
gr.components.Image(type="file", label="Source Avatar (Costumed by You)"),
|