Omnibus commited on
Commit
8df7d33
·
verified ·
1 Parent(s): c36510f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def show_s(name,token):
35
  #print(s_info)
36
  spaces.append(space_ea)
37
  #print (space_ea)
38
- return(gr.Dropdown.update(label="Spaces", choices=[s for s in spaces]),
39
  gr.update(choices=[s for s in spaces],interactive=True))
40
  #gr.update(choices=[s for s in spaces],interactive=True))
41
 
@@ -97,7 +97,7 @@ def show_f(repo,name,token):
97
  json.dump(s_info,f,indent=4)
98
  f.close()
99
  '''
100
- return(gr.Dropdown.update(label="Files", choices=[f for f in f_ist],interactive=True),
101
  file_list,
102
  gr.update(choices=[f for f in f_ist],interactive=True),
103
  api.get_space_runtime(f'{repo}/{name}'))
 
35
  #print(s_info)
36
  spaces.append(space_ea)
37
  #print (space_ea)
38
+ return(gr.update(label="Spaces", choices=[s for s in spaces]),
39
  gr.update(choices=[s for s in spaces],interactive=True))
40
  #gr.update(choices=[s for s in spaces],interactive=True))
41
 
 
97
  json.dump(s_info,f,indent=4)
98
  f.close()
99
  '''
100
+ return(gr.update(label="Files", choices=[f for f in f_ist],interactive=True),
101
  file_list,
102
  gr.update(choices=[f for f in f_ist],interactive=True),
103
  api.get_space_runtime(f'{repo}/{name}'))