Spaces:
Running
Running
File size: 452 Bytes
c5ad40f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Minimal Debug App
import os
import sys
from fastapi import FastAPI
import uvicorn
print("🔥 MINIMAL DEBUG APP STARTING 🔥", file=sys.stderr)
app = FastAPI()
@app.get("/")
def root():
return {"status": "ok", "message": "Minimal debug app is running"}
@app.get("/health")
def health():
return {"status": "healthy"}
if __name__ == "__main__":
port = int(os.environ.get("PORT", 7860))
uvicorn.run(app, host="0.0.0.0", port=port)
|