Tradi / app.py
Riy777's picture
Update app.py
9266bfe verified
raw
history blame contribute delete
447 Bytes
import uvicorn
from fastapi import FastAPI
from datetime import datetime
app = FastAPI()
@app.get("/")
async def read_root():
"""
A simple health check endpoint to confirm the server is running.
"""
return {
"status": "Running successfully!",
"message": "This is a simple test app.",
"timestamp": datetime.now().isoformat()
}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=7860)