ZenosArrows commited on
Commit
347dcc2
·
verified ·
1 Parent(s): 42312d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -197,13 +197,13 @@ with gr.Blocks(css=css, head=head) as demo:
197
  )
198
  with gr.Tab("Batch Mode"):
199
  batch_images = gr.File(
200
- label="Images",
201
  file_types=["image"],
202
  file_count="multiple"
203
  )
204
  with gr.Tab("Document Mode"):
205
  book = gr.File(
206
- label="Document",
207
  file_types=[".pdf", ".zip"],
208
  )
209
  with gr.Row():
@@ -233,15 +233,16 @@ with gr.Blocks(css=css, head=head) as demo:
233
  discard_alpha = gr.Checkbox(label="Add radial gradient background to transparent images", value=True)
234
 
235
  with gr.Column():
236
- gallery = gr.Gallery(
237
- label="RGBD Images",
238
- elem_id='img-display-output',
239
- format="png",
240
- columns=4,
241
- object_fit="contain",
242
- preview=True,
243
- interactive=True
244
- )
 
245
  download_btn = gr.DownloadButton()
246
  depthiness = gr.Slider(
247
  label="Depthiness",
 
197
  )
198
  with gr.Tab("Batch Mode"):
199
  batch_images = gr.File(
200
+ label="Input Images",
201
  file_types=["image"],
202
  file_count="multiple"
203
  )
204
  with gr.Tab("Document Mode"):
205
  book = gr.File(
206
+ label="PDF/ZIP Document",
207
  file_types=[".pdf", ".zip"],
208
  )
209
  with gr.Row():
 
233
  discard_alpha = gr.Checkbox(label="Add radial gradient background to transparent images", value=True)
234
 
235
  with gr.Column():
236
+ with gr.Tab("Result"):
237
+ gallery = gr.Gallery(
238
+ label="RGBD Images",
239
+ elem_id='img-display-output',
240
+ format="png",
241
+ columns=4,
242
+ object_fit="contain",
243
+ preview=True,
244
+ interactive=True
245
+ )
246
  download_btn = gr.DownloadButton()
247
  depthiness = gr.Slider(
248
  label="Depthiness",