Spaces:
Runtime error
Runtime error
slight changes to arg names will get this working again
Browse files
app.py
CHANGED
@@ -93,10 +93,10 @@ with gr.Blocks() as blocks:
|
|
93 |
btn.click(fn=None,
|
94 |
inputs=[],
|
95 |
outputs=[hidden_state],
|
96 |
-
|
97 |
# run python function on change of hidden textbox, add your logic to run function
|
98 |
hidden_state.change(fn=run, inputs=[hidden_state], outputs=[out])
|
99 |
# load JS on load of the page
|
100 |
-
blocks.load(None, None, None,
|
101 |
|
102 |
blocks.launch()
|
|
|
93 |
btn.click(fn=None,
|
94 |
inputs=[],
|
95 |
outputs=[hidden_state],
|
96 |
+
js=get_js)
|
97 |
# run python function on change of hidden textbox, add your logic to run function
|
98 |
hidden_state.change(fn=run, inputs=[hidden_state], outputs=[out])
|
99 |
# load JS on load of the page
|
100 |
+
blocks.load(None, None, None, js=load_js)
|
101 |
|
102 |
blocks.launch()
|