Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -234,40 +234,42 @@ with gr.Blocks(css=css) as build:
|
|
234 |
pass_box=gr.Textbox()
|
235 |
pass_btn=gr.Button()
|
236 |
with gr.Box(visible=True) as yes:
|
237 |
-
with gr.
|
238 |
-
with gr.
|
239 |
-
with gr.
|
240 |
-
with gr.
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
|
|
|
|
271 |
show_all_btn1.click(show_all,[r_name,token],files)
|
272 |
show_all_btn2.click(show_all_z,[r_name,token],files)
|
273 |
|
|
|
234 |
pass_box=gr.Textbox()
|
235 |
pass_btn=gr.Button()
|
236 |
with gr.Box(visible=True) as yes:
|
237 |
+
with gr.Tab("View 1"):
|
238 |
+
with gr.Row():
|
239 |
+
with gr.Column():
|
240 |
+
with gr.Group():
|
241 |
+
space_radio=gr.Radio(label="Spaces",choices=[])
|
242 |
+
with gr.Column():
|
243 |
+
file_radio=gr.Radio(label="Files",choices=[])
|
244 |
+
with gr.Column():
|
245 |
+
file_contents=gr.HTML()
|
246 |
+
with gr.Tab("View 2"):
|
247 |
+
with gr.Row():
|
248 |
+
with gr.Column(scale=2):
|
249 |
+
with gr.Group():
|
250 |
+
with gr.Row():
|
251 |
+
r_name = gr.Textbox(label="Repo")
|
252 |
+
token = gr.Textbox(label="auth")
|
253 |
+
with gr.Row():
|
254 |
+
s_btn = gr.Button("Show Spaces")
|
255 |
+
with gr.Row():
|
256 |
+
s_name = gr.Dropdown(label="Spaces", choices=[])
|
257 |
+
f_name = gr.Dropdown(label="Files", choices=[])
|
258 |
+
with gr.Row():
|
259 |
+
l_btn = gr.Button("Load Space")
|
260 |
+
with gr.Row():
|
261 |
+
show_all_btn1 = gr.Button("Load All 1")
|
262 |
+
show_all_btn2 = gr.Button("Load All 2")
|
263 |
+
with gr.Box():
|
264 |
+
|
265 |
+
r_h=gr.HTML()
|
266 |
+
with gr.Column(scale=1):
|
267 |
+
files=gr.File(file_count="directory")
|
268 |
+
with gr.Row():
|
269 |
+
r_t=gr.Textbox(max_lines=100)
|
270 |
+
m_t=gr.Textbox(max_lines=100)
|
271 |
+
uu=gr.Textbox(visible=False)
|
272 |
+
|
273 |
show_all_btn1.click(show_all,[r_name,token],files)
|
274 |
show_all_btn2.click(show_all_z,[r_name,token],files)
|
275 |
|