Update app.py
Browse files295 unmodified lines296297298299300301302303304305306295 unmodified lines# wiring singledef _store_df(df, msg): return df, df, msgbtn_parse.click(step1_process_pdf, inputs=[pdf], outputs=[out_df, status])btn_parse.then(_store_df, inputs=[out_df, status], outputs=[df_state, out_df, status])btn_apply.click(step2_apply_template,inputs=[tpl, df_state, mode, sheet_name, header_row, value_row],outputs=[out_xlsx, status])# ---- Tab 2: Banyak PDF (Batch) ----with gr.Tab("Banyak PDF (Batch)"):295 unmodified lines296297298299300301302303295 unmodified lines# wiring singledef _store_df(df, msg): return df, df, msgevt = btn_parse.click(step1_process_pdf, inputs=[pdf], outputs=[out_df, status])evt.then(_store_df, inputs=[out_df, status], outputs=[df_state, out_df, status])# ---- Tab 2: Banyak PDF (Batch) ----with gr.Tab("Banyak PDF (Batch)"):
app.py+2-5