radames commited on
Commit
76c3800
·
1 Parent(s): b1f6547

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,5 +36,6 @@ with block:
36
  btn2 = gr.Button("Set Params")
37
  btn2.click(fn=predict, inputs=[text_input, url_params],
38
  outputs=[text_output, url_params], _js=set_window_url_params)
39
-
 
40
  block.launch(debug=True)
 
36
  btn2 = gr.Button("Set Params")
37
  btn2.click(fn=predict, inputs=[text_input, url_params],
38
  outputs=[text_output, url_params], _js=set_window_url_params)
39
+ block.onload(fn=predict, inputs=[text_input, url_params],
40
+ outputs=[text_output, url_params], _js=get_window_url_params)
41
  block.launch(debug=True)