Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ with gr.Blocks(title=config.APP_TITLE, theme=gr.themes.Soft()) as demo:
|
|
| 122 |
m_files = gr.File(file_count="multiple", label="Archivos", file_types=[".pdf"])
|
| 123 |
with gr.Column(scale=2):
|
| 124 |
m_tbl = gr.Dataframe(headers=["ID", "Archivo"], interactive=False)
|
| 125 |
-
m_ord = gr.Textbox(label="Orden de los archivos seg煤n
|
| 126 |
m_btn = gr.Button("Unir", variant="primary")
|
| 127 |
m_out = gr.File(label="Resultado")
|
| 128 |
m_files.change(update_file_list, m_files, [m_tbl, m_ord])
|
|
@@ -137,7 +137,7 @@ with gr.Blocks(title=config.APP_TITLE, theme=gr.themes.Soft()) as demo:
|
|
| 137 |
dr_pg = gr.State(0)
|
| 138 |
with gr.Column():
|
| 139 |
with gr.Tab("Extraer"):
|
| 140 |
-
s_rng = gr.Textbox(label="Rangos", placeholder="1-3, 5")
|
| 141 |
s_prv = gr.Button("Previsualizaci贸n")
|
| 142 |
s_btn = gr.Button("Dividir", variant="primary")
|
| 143 |
s_gal = gr.Gallery(height=150, columns=4)
|
|
@@ -210,7 +210,7 @@ with gr.Blocks(title=config.APP_TITLE, theme=gr.themes.Soft()) as demo:
|
|
| 210 |
cb_btn.click(process_compare, [ca, cb], co)
|
| 211 |
|
| 212 |
# 6. EXTRAS
|
| 213 |
-
with gr.TabItem("Extras"):
|
| 214 |
with gr.Tab("Rotar pdf"):
|
| 215 |
with gr.Row():
|
| 216 |
with gr.Column():
|
|
|
|
| 122 |
m_files = gr.File(file_count="multiple", label="Archivos", file_types=[".pdf"])
|
| 123 |
with gr.Column(scale=2):
|
| 124 |
m_tbl = gr.Dataframe(headers=["ID", "Archivo"], interactive=False)
|
| 125 |
+
m_ord = gr.Textbox(label="Orden de los archivos seg煤n su ID", placeholder="Ej: 0, 2, 1")
|
| 126 |
m_btn = gr.Button("Unir", variant="primary")
|
| 127 |
m_out = gr.File(label="Resultado")
|
| 128 |
m_files.change(update_file_list, m_files, [m_tbl, m_ord])
|
|
|
|
| 137 |
dr_pg = gr.State(0)
|
| 138 |
with gr.Column():
|
| 139 |
with gr.Tab("Extraer"):
|
| 140 |
+
s_rng = gr.Textbox(label="Rangos de divisi贸n", placeholder="1-3, 5")
|
| 141 |
s_prv = gr.Button("Previsualizaci贸n")
|
| 142 |
s_btn = gr.Button("Dividir", variant="primary")
|
| 143 |
s_gal = gr.Gallery(height=150, columns=4)
|
|
|
|
| 210 |
cb_btn.click(process_compare, [ca, cb], co)
|
| 211 |
|
| 212 |
# 6. EXTRAS
|
| 213 |
+
with gr.TabItem("Extras (Rotar,proteger,metadatos)"):
|
| 214 |
with gr.Tab("Rotar pdf"):
|
| 215 |
with gr.Row():
|
| 216 |
with gr.Column():
|