Spaces:
Paused
Paused
import sys | |
print("Python Version:", sys.version) | |
print("Starting application...") | |
from fastapi import FastAPI | |
print("FastAPI imported successfully") | |
app = FastAPI() | |
print("FastAPI app created") | |
async def root(): | |
return {"message": "Server is running"} | |
print("Routes defined") | |
if __name__ == "__main__": | |
print("Starting uvicorn server...") | |
import uvicorn | |
uvicorn.run( | |
"main.app:app", | |
host="0.0.0.0", | |
port=7680, | |
workers=1 | |
) |