Spaces:
Sleeping
Sleeping
Download app.py from jrrribeiro/BirdNET-Validator-App: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/jrrribeiro/BirdNET-Validator-App/resolve/main/app.py
- Command line
-
hf download hf://spaces/jrrribeiro/BirdNET-Validator-App/app.py
-
curl -L -o app.py https://huggingface.co/spaces/jrrribeiro/BirdNET-Validator-App/resolve/main/app.py
299 Bytes
| import os | |
| from src.ui.app_factory import create_app | |
| if __name__ == "__main__": | |
| app = create_app() | |
| port = int(os.getenv("PORT") or os.getenv("BIRDNET_VALIDATOR_PORT") or "7860") | |
| host = os.getenv("BIRDNET_VALIDATOR_HOST") or "0.0.0.0" | |
| app.launch(server_name=host, server_port=port) | |