Omnibus commited on
Commit
7f5d545
1 Parent(s): 06f9f29

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +36 -34
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.Row():
238
- with gr.Column(scale=2):
239
- with gr.Group():
240
- with gr.Row():
241
- r_name = gr.Textbox(label="Repo")
242
- token = gr.Textbox(label="auth")
243
- with gr.Row():
244
- s_btn = gr.Button("Show Spaces")
245
- with gr.Row():
246
- s_name = gr.Dropdown(label="Spaces", choices=[])
247
- f_name = gr.Dropdown(label="Files", choices=[])
248
- with gr.Row():
249
- l_btn = gr.Button("Load Space")
250
- with gr.Row():
251
- show_all_btn1 = gr.Button("Load All 1")
252
- show_all_btn2 = gr.Button("Load All 2")
253
- with gr.Box():
254
-
255
- r_h=gr.HTML()
256
- with gr.Column(scale=1):
257
- files=gr.File(file_count="directory")
258
- with gr.Row():
259
- r_t=gr.Textbox(max_lines=100)
260
- m_t=gr.Textbox(max_lines=100)
261
- uu=gr.Textbox(visible=False)
262
- with gr.Row():
263
- with gr.Column():
264
- with gr.Group():
265
- space_radio=gr.Radio(label="Spaces",choices=[])
266
- with gr.Column():
267
- file_radio=gr.Radio(label="Files",choices=[])
268
- gr.Column()
269
- gr.Column()
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