Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,7 +221,14 @@ with gr.Blocks(theme=theme, css=css, title="Redimensionador de Imágenes para Im
|
|
| 221 |
height=200
|
| 222 |
)
|
| 223 |
gr.Markdown("---")
|
| 224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
with gr.Group(elem_classes="options-card"):
|
| 226 |
gr.Markdown("## ⚙️ **Parámetros de Impresión**")
|
| 227 |
|
|
@@ -268,6 +275,7 @@ with gr.Blocks(theme=theme, css=css, title="Redimensionador de Imágenes para Im
|
|
| 268 |
fn=process_images_for_print,
|
| 269 |
inputs=[
|
| 270 |
image_files_input,
|
|
|
|
| 271 |
target_dpi,
|
| 272 |
longest_side_cm
|
| 273 |
],
|
|
|
|
| 221 |
height=200
|
| 222 |
)
|
| 223 |
gr.Markdown("---")
|
| 224 |
+
# Opción para seleccionar una carpeta
|
| 225 |
+
input_folder_path = gr.Textbox(
|
| 226 |
+
label="O ingresar la ruta a una carpeta con imágenes",
|
| 227 |
+
placeholder="Ej: /ruta/a/mis/fotos (dejar en blanco si subes archivos)",
|
| 228 |
+
interactive=True
|
| 229 |
+
)
|
| 230 |
+
gr.Markdown("*(Si seleccionas archivos y una carpeta, se procesarán AMBOS.)*")
|
| 231 |
+
|
| 232 |
with gr.Group(elem_classes="options-card"):
|
| 233 |
gr.Markdown("## ⚙️ **Parámetros de Impresión**")
|
| 234 |
|
|
|
|
| 275 |
fn=process_images_for_print,
|
| 276 |
inputs=[
|
| 277 |
image_files_input,
|
| 278 |
+
input_folder_path,
|
| 279 |
target_dpi,
|
| 280 |
longest_side_cm
|
| 281 |
],
|