duypro247 commited on
Commit
4ab2d5c
1 Parent(s): ab4656e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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, text)
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()