Spaces:
Runtime error
Runtime error
Commit
·
1f2cd00
1
Parent(s):
9ef5d40
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,9 @@ def generate():
|
|
6 |
time.sleep(2.4)
|
7 |
return text
|
8 |
|
9 |
-
gr.
|
10 |
-
|
11 |
-
|
12 |
-
outputs=
|
13 |
-
|
|
|
|
6 |
time.sleep(2.4)
|
7 |
return text
|
8 |
|
9 |
+
with gr.Blocks() as demo:
|
10 |
+
btn = gr.Button("Generate")
|
11 |
+
out = gr.Textbox()
|
12 |
+
btn.click(fn=generate, outputs=out)
|
13 |
+
|
14 |
+
demo.launch(debug=True)
|