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(action, hair, top, bottom):
         | 
| 68 |  | 
| 69 | 
             
                # == Source Avatar ==
         | 
| 70 | 
             
                # body
         | 
| @@ -112,7 +112,7 @@ def run(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"),
         | 
|  | |
| 64 | 
             
                imageio.imwrite('image.png', image)
         | 
| 65 |  | 
| 66 |  | 
| 67 | 
            +
            def run(None, action, hair, top, bottom):
         | 
| 68 |  | 
| 69 | 
             
                # == Source Avatar ==
         | 
| 70 | 
             
                # body
         | 
|  | |
| 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"),
         |