Omnibus commited on
Commit
fbcabeb
1 Parent(s): 64ca3f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -51,9 +51,10 @@ with gr.Blocks() as app:
51
  update_game=gr.Button("Use Image")
52
  out_im=gr.Image(type='filepath')
53
  out_url=gr.Textbox(visible=False)
 
54
  html_game = gr.HTML()
55
 
56
  update_game.click(game_fn,[out_url],html_game)
57
  btn.click(dif_fn,prompt,[out_im,out_url])
58
- app.load(game_fn,None,html_game)
59
  app.launch()
 
51
  update_game=gr.Button("Use Image")
52
  out_im=gr.Image(type='filepath')
53
  out_url=gr.Textbox(visible=False)
54
+ start_prompt=gr.Textbox(value="A beautiful landscape",visible=False)
55
  html_game = gr.HTML()
56
 
57
  update_game.click(game_fn,[out_url],html_game)
58
  btn.click(dif_fn,prompt,[out_im,out_url])
59
+ app.load(dif_fn,start_prompt,[out_im,out_url]).then(game_fn,[out_url],html_game)
60
  app.launch()