Spaces:
Runtime error
Runtime error
import gradio as gr | |
js = """ | |
function test_function_js() {} | |
""" | |
def function(): | |
pass | |
with gr.Blocks() as app: | |
button = gr.Button() | |
button.click( | |
fn=function, | |
js=js, | |
) | |
app.launch() |