Spaces:
Runtime error
Runtime error
Commit History
-
Add major UI improvements: flattened tabs, cancellation days, CSV preview, enhanced progress
Sidd-mukho77 +1: Claude Sonnet 4.5This commit implements comprehensive UI improvements to the voucher generator: Features Added: - Flattened tab structure: 3 top-level tabs (Single, Bulk PDF, Bulk CSV) - Cancellation days control: conditional input for free cancellation policy (1-365 days) - CSV preview table: instant visualization of first 100 rows with validation - Enhanced progress tracking: shows "X done / Y remaining" with emoji indicators - UI refinements: section headers, better button styling, improved visual hierarchy Changes: - app.py: Restructured UI, added helper functions, updated event handlers - voucher_generator.py: Enhanced PDF rendering to display cancellation days - sample_template.csv: Added cancellation_days column example Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>a405c28 -
Add bulk processing: PDF and CSV upload
Sidd-mukho77Major Features: - 📦 New 'Bulk Processing' tab with two modes - 📄 Bulk PDF Upload: Process multiple booking PDFs - 📊 Bulk CSV Upload: Generate vouchers from CSV data - 📥 ZIP download with all generated vouchers - 📊 Progress tracking for bulk operations Bulk PDF Upload: - Upload multiple PDF files at once - Auto-extract data from each PDF using Gemini - Generate voucher for each booking - Download all as ZIP file Bulk CSV Upload: - Upload CSV with booking data - Required columns: hotel_name, city, checkin, checkout, guest_name - Optional columns: room_type, meal_plan, address, etc. - Process all rows and generate vouchers - Download all as ZIP file UI Changes: - Organized into tabs: 'Single Voucher' and 'Bulk Processing' - Sub-tabs for PDF vs CSV bulk processing - Inline CSV format documentation - Sample CSV template included - Progress indicators during processing - Detailed status messages with results Technical: - process_bulk_pdfs() function for PDF batch processing - proces…19eb102