Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def game_fn(sky=sky,platform=platform,star=star,bomb=bomb,dude=dude):
|
|
| 22 |
</div>"""
|
| 23 |
return html_mod
|
| 24 |
|
| 25 |
-
def update_game(sky=None,platform=None,star=None,bomb=None,dude=None)
|
| 26 |
|
| 27 |
return game_fn(sky=sky)
|
| 28 |
|
|
@@ -40,7 +40,7 @@ with gr.Blocks() as app:
|
|
| 40 |
prompt=gr.Textbox()
|
| 41 |
with gr.Row():
|
| 42 |
btn=gr.Button("Make Image")
|
| 43 |
-
|
| 44 |
out_im=gr.Image(type='filepath')
|
| 45 |
out_url=gr.Textbox(visible=False)
|
| 46 |
html_game = gr.HTML()
|
|
|
|
| 22 |
</div>"""
|
| 23 |
return html_mod
|
| 24 |
|
| 25 |
+
def update_game(sky=None,platform=None,star=None,bomb=None,dude=None):
|
| 26 |
|
| 27 |
return game_fn(sky=sky)
|
| 28 |
|
|
|
|
| 40 |
prompt=gr.Textbox()
|
| 41 |
with gr.Row():
|
| 42 |
btn=gr.Button("Make Image")
|
| 43 |
+
update_game=gr.Button("Use Image")
|
| 44 |
out_im=gr.Image(type='filepath')
|
| 45 |
out_url=gr.Textbox(visible=False)
|
| 46 |
html_game = gr.HTML()
|