PROSTLE's picture
fix: align port to 7860 for HuggingFace and add yfinance session headers
0973cbc
Raw History Blame Contribute Delete
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()