Duplicated from Space-Face/SpaceFaceTemplate
e61bae3 b188fbd e61bae3 5aa253f e61bae3 b188fbd e61bae3
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr import main def update(name): print("being kept alive!") return "alive" with gr.Blocks() as demo: btn = gr.Button("keep alive") btn.click(fn=update) demo.launch()