Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,12 @@ api = HfApi()
|
|
8 |
|
9 |
def restart_space():
|
10 |
space_runtime = api.restart_space(repo_id=repo_id, token=hf_token)
|
11 |
-
return str(space_runtime)
|
12 |
|
13 |
demo = gr.Blocks()
|
14 |
|
15 |
with demo:
|
16 |
text = gr.Textbox()
|
17 |
b1 = gr.Button("Restart Space")
|
18 |
-
b1.click(restart_space
|
19 |
|
20 |
demo.launch()
|
|
|
8 |
|
9 |
def restart_space():
|
10 |
space_runtime = api.restart_space(repo_id=repo_id, token=hf_token)
|
|
|
11 |
|
12 |
demo = gr.Blocks()
|
13 |
|
14 |
with demo:
|
15 |
text = gr.Textbox()
|
16 |
b1 = gr.Button("Restart Space")
|
17 |
+
b1.click(restart_space)
|
18 |
|
19 |
demo.launch()
|