File size: 220 Bytes
c7c75bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()