Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ def show_s(name,token):
|
|
36 |
#gr.update(choices=[s for s in spaces],interactive=True))
|
37 |
|
38 |
def show_f(repo,name,token,tog):
|
|
|
39 |
if tog:
|
40 |
-
api = HfApi(token=token)
|
41 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="space"))
|
42 |
print (f_ist)
|
43 |
file_list = []
|
@@ -142,19 +142,22 @@ with gr.Blocks(css=css) as build:
|
|
142 |
with gr.Group():
|
143 |
space_radio=gr.Radio(label="Spaces",choices=[])
|
144 |
with gr.Column(scale=3):
|
145 |
-
|
146 |
-
dest=gr.Textbox(label="Destination")
|
147 |
-
move_btn=gr.Button("Move Repo")
|
148 |
with gr.Tab("Space Info"):
|
149 |
with gr.Row():
|
150 |
with gr.Column(scale=3):
|
151 |
space_info_json=gr.JSON()
|
152 |
gr.Column(scale=1)
|
|
|
153 |
with gr.Tab("Files"):
|
154 |
with gr.Column(scale=1):
|
155 |
file_radio=gr.Radio(label="Files",choices=[])
|
156 |
with gr.Column(scale=3):
|
157 |
file_contents=gr.HTML()
|
|
|
|
|
|
|
|
|
158 |
'''
|
159 |
with gr.Tab("View 2"):
|
160 |
with gr.Row():
|
|
|
36 |
#gr.update(choices=[s for s in spaces],interactive=True))
|
37 |
|
38 |
def show_f(repo,name,token,tog):
|
39 |
+
api = HfApi(token=token)
|
40 |
if tog:
|
|
|
41 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="space"))
|
42 |
print (f_ist)
|
43 |
file_list = []
|
|
|
142 |
with gr.Group():
|
143 |
space_radio=gr.Radio(label="Spaces",choices=[])
|
144 |
with gr.Column(scale=3):
|
145 |
+
|
|
|
|
|
146 |
with gr.Tab("Space Info"):
|
147 |
with gr.Row():
|
148 |
with gr.Column(scale=3):
|
149 |
space_info_json=gr.JSON()
|
150 |
gr.Column(scale=1)
|
151 |
+
|
152 |
with gr.Tab("Files"):
|
153 |
with gr.Column(scale=1):
|
154 |
file_radio=gr.Radio(label="Files",choices=[])
|
155 |
with gr.Column(scale=3):
|
156 |
file_contents=gr.HTML()
|
157 |
+
with gr.Tab("Move"):
|
158 |
+
with gr.Row():
|
159 |
+
dest=gr.Textbox(label="Destination")
|
160 |
+
move_btn=gr.Button("Move Repo")
|
161 |
'''
|
162 |
with gr.Tab("View 2"):
|
163 |
with gr.Row():
|