Spaces:
Running
Running
| """ | |
| 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, | |
| ) | |