Spaces:
Sleeping
Release 1.0.4: Critical fixes for Windows exe and upload timeouts
Browse files## 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
## Download v1.0.4
- [Windows Portable](https://huggingface.co/datasets/jrrribeiro/birdnet-uploader-releases/resolve/main/releases/v1.0.4/birdnet-uploader-1.0.4-windows.zip)
- SHA256: 71d126edf726298ed25d4b72b5364e85fa6b1e76157c4f1ee0ab76b4a653f359
## Testing Notes
- Exe should now launch without black screen
- Uploads to HF should complete without hanging
- Auto-dataset creation included from v1.0.3
- README.md +1 -1
- build/pyinstaller_uploader.spec +2 -0
- src/uploader/batch_uploader.py +7 -1
- src/uploader/web_ui.py +8 -8
|
@@ -51,7 +51,7 @@ This repository is a focused tool for reliably uploading large audio collections
|
|
| 51 |
|
| 52 |
### Windows Portable (Unlimited Size)
|
| 53 |
|
| 54 |
-
1. [Download birdnet-uploader-1.0.
|
| 55 |
2. Extract the archive
|
| 56 |
3. Double-click `birdnet-uploader.exe` to launch the web UI
|
| 57 |
- Or use CLI commands: `birdnet-uploader login`, `birdnet-uploader upload --help`
|
|
|
|
| 51 |
|
| 52 |
### Windows Portable (Unlimited Size)
|
| 53 |
|
| 54 |
+
1. [Download birdnet-uploader-1.0.4-windows.zip](https://huggingface.co/datasets/jrrribeiro/birdnet-uploader-releases/resolve/main/releases/v1.0.4/birdnet-uploader-1.0.4-windows.zip) (~109 MB)
|
| 55 |
2. Extract the archive
|
| 56 |
3. Double-click `birdnet-uploader.exe` to launch the web UI
|
| 57 |
- Or use CLI commands: `birdnet-uploader login`, `birdnet-uploader upload --help`
|
|
@@ -20,6 +20,8 @@ a = Analysis(
|
|
| 20 |
"pydantic",
|
| 21 |
"pandas",
|
| 22 |
"pyarrow",
|
|
|
|
|
|
|
| 23 |
"src.uploader",
|
| 24 |
"src.uploader.auth_service",
|
| 25 |
"src.uploader.batch_uploader",
|
|
|
|
| 20 |
"pydantic",
|
| 21 |
"pandas",
|
| 22 |
"pyarrow",
|
| 23 |
+
"fastapi",
|
| 24 |
+
"starlette",
|
| 25 |
"src.uploader",
|
| 26 |
"src.uploader.auth_service",
|
| 27 |
"src.uploader.batch_uploader",
|
|
@@ -40,7 +40,13 @@ class BatchUploader:
|
|
| 40 |
last_exc: Exception | None = None
|
| 41 |
while attempts <= self.max_retries:
|
| 42 |
try:
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
return
|
| 45 |
except Exception as exc: # pragma: no cover - network behavior
|
| 46 |
last_exc = exc
|
|
|
|
| 40 |
last_exc: Exception | None = None
|
| 41 |
while attempts <= self.max_retries:
|
| 42 |
try:
|
| 43 |
+
# Use path_or_fileobj for file paths, with long timeout for large files
|
| 44 |
+
self._api.upload_file(
|
| 45 |
+
path_or_fileobj=str(local_path),
|
| 46 |
+
path_in_repo=remote_path,
|
| 47 |
+
repo_id=self.repo_id,
|
| 48 |
+
repo_type="dataset"
|
| 49 |
+
)
|
| 50 |
return
|
| 51 |
except Exception as exc: # pragma: no cover - network behavior
|
| 52 |
last_exc = exc
|
|
@@ -316,24 +316,24 @@ def create_uploader_app():
|
|
| 316 |
|
| 317 |
Para uploads maiores (>1 GB) ou melhor performance, baixe o executável portátil:
|
| 318 |
|
| 319 |
-
**[🔗 Download birdnet-uploader-1.0.
|
| 320 |
|
| 321 |
- **Tamanho**: ~109 MB (sem Python necessário)
|
| 322 |
- **Performance**: Upload ilimitado via CLI
|
| 323 |
-
- **Segurança**: Checksum disponível [aqui](https://huggingface.co/datasets/jrrribeiro/birdnet-uploader-releases/resolve/main/releases/v1.0.
|
| 324 |
- **Instruções**: [Setup Guide](https://github.com/jrrribeiro/BirdNET-Uploader-App/blob/main/WINDOWS_PORTABLE_SETUP.md)
|
| 325 |
- **Troubleshooting**: [Guide](https://github.com/jrrribeiro/BirdNET-Uploader-App/blob/main/TROUBLESHOOTING.md)
|
| 326 |
|
| 327 |
### 📋 Checksum SHA256
|
| 328 |
```
|
| 329 |
-
|
| 330 |
```
|
| 331 |
|
| 332 |
-
### ⚡ Novidades na v1.0.
|
| 333 |
-
- ✅ **CRÍTICO**:
|
| 334 |
-
- ✅ **Melhorado**:
|
| 335 |
-
- ✅
|
| 336 |
-
- ✅
|
| 337 |
- ✅ Adicionado: test_imports.py para diagnóstico
|
| 338 |
""")
|
| 339 |
|
|
|
|
| 316 |
|
| 317 |
Para uploads maiores (>1 GB) ou melhor performance, baixe o executável portátil:
|
| 318 |
|
| 319 |
+
**[🔗 Download birdnet-uploader-1.0.4-windows.zip](https://huggingface.co/datasets/jrrribeiro/birdnet-uploader-releases/resolve/main/releases/v1.0.4/birdnet-uploader-1.0.4-windows.zip)**
|
| 320 |
|
| 321 |
- **Tamanho**: ~109 MB (sem Python necessário)
|
| 322 |
- **Performance**: Upload ilimitado via CLI
|
| 323 |
+
- **Segurança**: Checksum disponível [aqui](https://huggingface.co/datasets/jrrribeiro/birdnet-uploader-releases/resolve/main/releases/v1.0.4/birdnet-uploader-1.0.4-windows.zip.sha256)
|
| 324 |
- **Instruções**: [Setup Guide](https://github.com/jrrribeiro/BirdNET-Uploader-App/blob/main/WINDOWS_PORTABLE_SETUP.md)
|
| 325 |
- **Troubleshooting**: [Guide](https://github.com/jrrribeiro/BirdNET-Uploader-App/blob/main/TROUBLESHOOTING.md)
|
| 326 |
|
| 327 |
### 📋 Checksum SHA256
|
| 328 |
```
|
| 329 |
+
71d126edf726298ed25d4b72b5364e85fa6b1e76157c4f1ee0ab76b4a653f359
|
| 330 |
```
|
| 331 |
|
| 332 |
+
### ⚡ Novidades na v1.0.4
|
| 333 |
+
- ✅ **CRÍTICO**: Gradio agora incluído no exe (antes faltava!)
|
| 334 |
+
- ✅ **Melhorado**: Timeout aumentado para uploads longos
|
| 335 |
+
- ✅ **Corrigido**: Parâmetro API de batch_uploader (path_or_file → path_or_fileobj)
|
| 336 |
+
- ✅ Melhorado: Tratamento de erros durante uploads""")
|
| 337 |
- ✅ Adicionado: test_imports.py para diagnóstico
|
| 338 |
""")
|
| 339 |
|