Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 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",
|