svjack commited on
Commit
00e2a24
·
1 Parent(s): 1578d1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -65,6 +65,9 @@ def zip_ims(g):
65
  from uuid import uuid1
66
  if g is None:
67
  return None
 
 
 
68
  l = list(map(lambda x: x["name"], g))
69
  if not l:
70
  return None
@@ -345,10 +348,6 @@ with gr.Blocks(css="custom.css") as demo:
345
  with gr.Row():
346
  g_outputs = gr.Gallery(label='Output gallery', elem_id="gallery",
347
  columns=[5],object_fit="contain", height="auto")
348
- with gr.Row():
349
- with gr.Tab(label = "Download"):
350
- zip_button = gr.Button("Zip Images to Download", elem_id="zip_button")
351
- downloads = gr.File(label = "Image zipped", elem_id = "zip_file")
352
 
353
  with gr.Column():
354
  sdg_outputs = gr.Gallery(label='Sort Distinct gallery', elem_id="gallery",
@@ -358,6 +357,10 @@ with gr.Blocks(css="custom.css") as demo:
358
  #order_func_name = gr.Radio(choices=hash_func_name,
359
  #value=hash_func_name[0], label="Order by", elem_id="order_radio")
360
  #gr.Dataframe(label='prompts for corresponding images')]
 
 
 
 
361
 
362
 
363
  with gr.Row():
 
65
  from uuid import uuid1
66
  if g is None:
67
  return None
68
+ print(g[0])
69
+ print(g[0][0])
70
+ print(g[0][1])
71
  l = list(map(lambda x: x["name"], g))
72
  if not l:
73
  return None
 
348
  with gr.Row():
349
  g_outputs = gr.Gallery(label='Output gallery', elem_id="gallery",
350
  columns=[5],object_fit="contain", height="auto")
 
 
 
 
351
 
352
  with gr.Column():
353
  sdg_outputs = gr.Gallery(label='Sort Distinct gallery', elem_id="gallery",
 
357
  #order_func_name = gr.Radio(choices=hash_func_name,
358
  #value=hash_func_name[0], label="Order by", elem_id="order_radio")
359
  #gr.Dataframe(label='prompts for corresponding images')]
360
+ with gr.Row():
361
+ with gr.Tab(label = "Download"):
362
+ zip_button = gr.Button("Zip Images to Download", elem_id="zip_button")
363
+ downloads = gr.File(label = "Image zipped", elem_id = "zip_file")
364
 
365
 
366
  with gr.Row():