dataset-tool / app.py
iaroy's picture
Update project with docker SDK configuration
8450509
raw
history blame
421 Bytes
from fastapi import FastAPI
import uvicorn
# Create a FastAPI app for Hugging Face Spaces
app = FastAPI(title="Collinear API")
@app.get("/")
async def root():
return {"message": "Welcome to Collinear API"}
@app.get("/health")
async def health():
return {"status": "healthy"}
if __name__ == "__main__":
# This is used when running locally
uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)