Omnibus commited on
Commit
95dc3e5
1 Parent(s): fcbd781

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +13 -5
dl.py CHANGED
@@ -237,11 +237,12 @@ with gr.Blocks(css=css) as build:
237
  with gr.Box(visible=True) as yes:
238
  with gr.Box():
239
  with gr.Row():
240
- with gr.Column():
241
  r_name = gr.Textbox(label="Repo")
242
  token = gr.Textbox(label="auth")
243
  s_btn = gr.Button("Show Spaces")
244
- gr.Column()
 
245
  with gr.Tab("View 1"):
246
  with gr.Row():
247
  with gr.Column(scale=1):
@@ -265,13 +266,20 @@ with gr.Blocks(css=css) as build:
265
  show_all_btn2 = gr.Button("Load All 2")
266
  with gr.Box():
267
  r_h=gr.HTML()
268
- with gr.Column(scale=1):
269
- files=gr.File(file_count="directory")
270
  with gr.Row():
271
  r_t=gr.Textbox(max_lines=100)
272
  m_t=gr.Textbox(max_lines=100)
273
  uu=gr.Textbox(visible=False)
274
-
 
 
 
 
 
 
 
 
 
275
  show_all_btn1.click(show_all,[r_name,token],files)
276
  show_all_btn2.click(show_all_z,[r_name,token],files)
277
 
 
237
  with gr.Box(visible=True) as yes:
238
  with gr.Box():
239
  with gr.Row():
240
+ with gr.Column(scale=2):
241
  r_name = gr.Textbox(label="Repo")
242
  token = gr.Textbox(label="auth")
243
  s_btn = gr.Button("Show Spaces")
244
+ with gr.Column(scale=1):
245
+ files=gr.File(file_count="directory")
246
  with gr.Tab("View 1"):
247
  with gr.Row():
248
  with gr.Column(scale=1):
 
266
  show_all_btn2 = gr.Button("Load All 2")
267
  with gr.Box():
268
  r_h=gr.HTML()
 
 
269
  with gr.Row():
270
  r_t=gr.Textbox(max_lines=100)
271
  m_t=gr.Textbox(max_lines=100)
272
  uu=gr.Textbox(visible=False)
273
+ with gr.Tab("View 3"):
274
+ with gr.Row():
275
+ with gr.Column(scale=1):
276
+ with gr.Group():
277
+ space_radio=gr.Radio(label="Spaces",choices=[])
278
+ with gr.Column(scale=1):
279
+ file_radio=gr.Radio(label="Files",choices=[])
280
+ with gr.Column(scale=2):
281
+ file_contents=gr.HTML()
282
+
283
  show_all_btn1.click(show_all,[r_name,token],files)
284
  show_all_btn2.click(show_all_z,[r_name,token],files)
285