Spaces:
Sleeping
Sleeping
Download server/app.py from PROSTLE/StockSense-AI: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/PROSTLE/StockSense-AI/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/PROSTLE/StockSense-AI/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/PROSTLE/StockSense-AI/resolve/main/server/app.py
421 Bytes
| import sys | |
| import os | |
| # Ensure the root and backend directories are in the path | |
| root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| sys.path.append(root) | |
| sys.path.append(os.path.join(root, "backend")) | |
| from backend.app import app | |
| def main(): | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |
| # This entry point satisfies OpenEnv and uv requirements | |
| if __name__ == "__main__": | |
| main() | |