Spaces:
Sleeping
Sleeping
Download run.py from rohannsinghal/hackrx6.0: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/rohannsinghal/hackrx6.0/resolve/main/run.py
- Command line
-
hf download hf://spaces/rohannsinghal/hackrx6.0/run.py
-
curl -L -o run.py https://huggingface.co/spaces/rohannsinghal/hackrx6.0/resolve/main/run.py
507 Bytes
| # Fixed run.py | |
| import uvicorn | |
| import os | |
| if __name__ == "__main__": | |
| port = int(os.environ.get("PORT", 8000)) | |
| print(f"🚀 Starting HackRx 6.0 RAG Server on port {port}...") | |
| # Use the correct path - adjust based on your file structure | |
| # If main_api.py is in the root directory: | |
| #uvicorn.run("main_api:app", host="0.0.0.0", port=port, reload=False) | |
| # If main_api.py is in app/ directory, use: | |
| uvicorn.run("app.main_api:app", host="0.0.0.0", port=port, reload=False) |