Spaces:
Running
Running
Update app.py
Browse files92 unmodified lines9394959696979899177 unmodified lines27727827928028028128228328428528628728828929029129229329429529629729829930030130230392 unmodified lines cell_top = table.cell(0, col_idx) cell_bottom = table.cell(1, col_idx) # Enforce exact 0.069 inches padding boundaries configuration (Cleanly expanded layout blocks) # Enforce exact 0.069 inches padding boundaries configuration cell_top.width = Inches(col_widths[col_idx]) tcPr_top = cell_top._tc.get_or_add_tcPr() borders_top = parse_xml(f'<w:tcBorders {nsdecls("w")}><w:top w:val="single" w:sz="4" w:color="B7B7B7"/><w:left w:val="single" w:sz="4" w:color="B7B7B7"/><w:bottom w:val="single" w:sz="4" w:color="B7B7B7"/><w:right w:val="single" w:sz="4" w:color="B7B7B7"/></w:tcBorders>')177 unmodified lines with gr.Row(): with gr.Column(): status_field = gr.Textbox(label="System Status Pipeline Logs", interactive=False) doc_file = gr.File(label=" doc_file = gr.File(label="📥 Download Structured Document Asset (.docx)", visible=False) with gr.Row(): canvas_area = gr.HTML(label="Interlinear Render Canvas Layer Output")
# Connect UI trigger actions gen_btn.click( fn=lambda: gr.update(visible=True), inputs=None, outputs=loading_area, queue=False ).then( fn=process_pipeline, inputs=[api_key, ms_name, book, ch, ver, raw_input], outputs=[status_field, canvas_area, doc_file] ).then( fn=lambda: gr.update(visible=False), inputs=None, outputs=loading_area, queue=False )
if __name__ == "__main__": demo.launch()app.py+25-2