Spaces:
Sleeping
Sleeping
Commit History
-
Add tests for batch uploader and deduplicator logic
- Implemented unit tests for BatchUploader to validate retry logic, deduplication, and file upload scenarios. - Added a test for Deduplicator to ensure it handles timeouts correctly. - Created temporary audio files and CSVs for testing purposes. - Included various log files to capture upload processes and error handling.2b0510e
-
Release 1.0.4: Critical fixes for Windows exe and upload timeouts
## Critical Bug Fixes 🔧 ### Windows Exe Issue - **Fixed**: Gradio module missing from PyInstaller bundle - **Issue**: v1.0.3 exe crashed with 'ModuleNotFoundError: No module named gradio' - **Solution**: Added explicit gradio dependency in spec file + installed package ### Upload Timeout Issues - **Fixed**: Long uploads hanging/timing out (stayed at 70%) - **Issue**: batch_uploader had wrong API parameter (path_or_file vs path_or_fileobj) - **Solution**: Corrected parameter names and added retry logic with backoff ## Changes - **build/pyinstaller_uploader.spec**: Added missing dependencies - **src/uploader/batch_uploader.py**: Fixed API parameter + added repo_type - **requirements.txt**: Ensured all dependencies are listed - **web_ui.py & README.md**: Updated to v1.0.4 ## v1.0.4 Features - ✅ Exe now starts without module errors - ✅ Uploads handle timeouts with automatic retry (up to 5 attempts) - ✅ Auto-dataset creation still works - ✅ Better error messages for upload failures ##…4e68920 -
Release 1.0.3: Auto-create datasets if they don't exist
## Major Feature: Auto-Dataset Creation 🎯 - **Web UI**: Now creates dataset automatically if not found - **CLI**: Automatically initializes dataset structure with required folders - Users no longer need to manually create datasets on HuggingFace first! ## Auto-Creation Flow 1. User enters repo_id (e.g., 'username/my-dataset') 2. App tries to validate existing dataset 3. If dataset doesn't exist: Create it automatically 4. If structure incomplete: Initialize required folders and manifest 5. Upload proceeds with a working dataset ## Error Handling Improvements - Clear error messages when dataset creation fails - Helpful hints for permission issues - Better error context for troubleshooting ## Code Changes - **web_ui.py**: Enhanced dataset validation with auto-creation - **main.py**: CLI now auto-creates datasets (upload command) - Fixed API parameter names (path_or_fileobj) ## Tested On - Web UI: Can now upload to non-existent datasets - CLI: init-repo and upload both create structu…0c612f8 -
Release 1.0.2: Critical fix for Windows exe entry point
## Critical Bug Fix - Fixed: app.py now executes correctly in PyInstaller exe - Issue: 'if __name__ == __main__:' block never runs in exe - Solution: Removed guard, code runs on import ## Improvements - Better error handling for 404 (dataset not found) - Clear instructions when dataset doesn't exist - Added test_imports.py for troubleshooting - Windows exe shows status messages ## Changes - app.py: Removed if __name__ guard, added logging - web_ui.py: Better 404 error handling with instructions - Added test_imports.py and debug.bat for debugging - Updated .gitignore to exclude build artifactsb77c32b -
Release 1.0.1: Bug fixes and improved error handling
## Bug Fixes - Fixed HfApi parameter name (path_or_file → path_or_fileobj) for CSV and shard uploads - Improved error handling in app.py with logging and traceback ## New Features - Added TROUBLESHOOTING.md with comprehensive debugging guide - Added app_debug.py for detailed error logging - Added launcher.bat for better error visibility on Windows - Added error message with proper formatting and descriptions ## Changes in src/uploader/web_ui.py - Corrected API calls to use path_or_fileobj instead of path_or_file - Both CSV upload (line 174) and shard upload (line 203) now use correct parameter ## Testing - Windows exe now logs errors to ~/.birdnet-uploader/logs/ - Better error messages for network issues and API failures - Port conflicts properly detected and reported ## Documentation - Updated README.md to link TROUBLESHOOTING guide - Web UI now shows v1.0.1 features - Provided SHA256 checksum for integrity verification54ead58 -
Release 1.0.0: Windows portable executable hosted on Hugging Face
- Built Windows portable with PyInstaller (100 MB zip) - Uploaded to HF dataset: jrrribeiro/birdnet-uploader-releases - Added download link to web UI with checksum - Added comprehensive documentation and upload scripts - Supports both web UI and CLI modes without Python installationba0c4c4
-
Import uploader files from validator workspace
4e31d1f