Spaces:
Sleeping
Sleeping
Update app.py
Browse files119 unmodified lines120121122123119 unmodified linesexcept Exception as e:return None, f"發生錯誤: {str(e)}"# Gradio UI 介面... (保持不變)119 unmodified lines120121122123124125126127128129130131132133134135119 unmodified linesexcept Exception as e:return None, f"發生錯誤: {str(e)}"# Gradio 介面with gr.Blocks() as app:gr.Markdown("# 基金報表一鍵合併工具 (跳過偏移修正版)")with gr.Row():f_in = gr.File(label="上傳原始 Excel", file_count="multiple")h_in = gr.Number(label="模板高度 (建議 20)", value=20)btn = gr.Button("🚀 開始一鍵合併", variant="primary")f_out = gr.File(label="下載合併後 Excel")status = gr.Textbox(label="狀態")btn.click(process_direct_merge, [f_in, h_in], [f_out, status])if __name__ == "__main__":app.launch(server_name="0.0.0.0", server_port=7860)
app.py+13-1