File size: 507 Bytes
0c4f4d8
774aab5
 
 
 
 
ee944a0
 
 
 
0c4f4d8
 
 
 
 
ee944a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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)