Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -56,7 +56,7 @@ def show_f(repo,name,token):
|
|
56 |
zipObj.write(f'{name}/{file}')
|
57 |
file_list.append(f'{name}.zip')
|
58 |
|
59 |
-
return(gr.
|
60 |
|
61 |
def show_all(author,token):
|
62 |
spaces=[]
|
@@ -147,13 +147,13 @@ with gr.Blocks() as build:
|
|
147 |
pass_btn=gr.Button()
|
148 |
with gr.Box(visible=True) as yes:
|
149 |
with gr.Row():
|
150 |
-
with gr.Column(scale=
|
151 |
with gr.Group():
|
152 |
with gr.Row():
|
153 |
r_name = gr.Textbox(label="Repo")
|
154 |
token = gr.Textbox(label="auth")
|
155 |
with gr.Row():
|
156 |
-
s_btn = gr.Button("Show")
|
157 |
with gr.Row():
|
158 |
s_name = gr.Dropdown(label="Spaces", choices=[])
|
159 |
d_app = gr.Dropdown(label="Files", choices=[])
|
|
|
56 |
zipObj.write(f'{name}/{file}')
|
57 |
file_list.append(f'{name}.zip')
|
58 |
|
59 |
+
return(gr.update(label="Files", choices=[f for f in f_ist],interactiv=True), file_list)
|
60 |
|
61 |
def show_all(author,token):
|
62 |
spaces=[]
|
|
|
147 |
pass_btn=gr.Button()
|
148 |
with gr.Box(visible=True) as yes:
|
149 |
with gr.Row():
|
150 |
+
with gr.Column(scale=2):
|
151 |
with gr.Group():
|
152 |
with gr.Row():
|
153 |
r_name = gr.Textbox(label="Repo")
|
154 |
token = gr.Textbox(label="auth")
|
155 |
with gr.Row():
|
156 |
+
s_btn = gr.Button("Show Spaces")
|
157 |
with gr.Row():
|
158 |
s_name = gr.Dropdown(label="Spaces", choices=[])
|
159 |
d_app = gr.Dropdown(label="Files", choices=[])
|