xp3857 commited on
Commit
5fc780a
·
1 Parent(s): bfb3a95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def show_s(name,d_app,token):
44
 
45
  spaces2.append(line3)
46
  spaces.append(line2)
47
- print(f"{line}")
48
  return(gr.Dropdown.update(label="Spaces", choices=[s for s in spaces])),spaces2
49
 
50
  def show_f(repo,name,token):
@@ -81,6 +81,10 @@ def get_f(r_name,spaces,token):
81
  api = HfApi(token=token)
82
  spaces_b=[]
83
  files_b=[]
 
 
 
 
84
  for i in spaces:
85
  print(f"a-{i}")
86
  print(spaces[i])
 
44
 
45
  spaces2.append(line3)
46
  spaces.append(line2)
47
+ print(f"{line2}")
48
  return(gr.Dropdown.update(label="Spaces", choices=[s for s in spaces])),spaces2
49
 
50
  def show_f(repo,name,token):
 
81
  api = HfApi(token=token)
82
  spaces_b=[]
83
  files_b=[]
84
+ spaces=spaces.replace("[","").replace("]","").replace("\n",",")
85
+ spaces=spaces.split(",")
86
+
87
+
88
  for i in spaces:
89
  print(f"a-{i}")
90
  print(spaces[i])