Spaces:
Sleeping
Sleeping
Download app.py from PeterBot22/dealflow-ai: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/PeterBot22/dealflow-ai/resolve/main/app.py
- Command line
-
hf download hf://spaces/PeterBot22/dealflow-ai/app.py
-
curl -L -o app.py https://huggingface.co/spaces/PeterBot22/dealflow-ai/resolve/main/app.py
513 Bytes
| """ | |
| DealFlow AI — HuggingFace Space entry point. | |
| Imports and launches the Gradio UI from ui/app.py. | |
| """ | |
| import sys | |
| from pathlib import Path | |
| # Ensure the project root is on the path (HF Spaces runs from repo root) | |
| sys.path.insert(0, str(Path(__file__).parent)) | |
| from ui.app import build_ui | |
| demo = build_ui() | |
| if __name__ == "__main__": | |
| import os | |
| demo.launch( | |
| server_name="0.0.0.0", | |
| server_port=int(os.getenv("GRADIO_PORT", "7860")), | |
| share=False, | |
| show_error=False, | |
| ) | |