Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
def update(name):
|
3 |
return f"liven"
|
4 |
|
5 |
with gr.Blocks() as demo:
|
6 |
btn = gr.Button("keep alive")
|
7 |
-
btn.click(fn=update
|
8 |
|
9 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import main
|
3 |
def update(name):
|
4 |
return f"liven"
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
btn = gr.Button("keep alive")
|
8 |
+
btn.click(fn=update)
|
9 |
|
10 |
demo.launch()
|