from fastapi import FastAPI app = FastAPI(title="Deploying FastAPI Apps on Huggingface") @app.get("/", tags=["Home"]) def api_home(): return {'detail': 'Welcome to FastAPI Tutorial!'} @app.post("/",tags=["hello"]) def hello(name: str): return {'message': f"hello {name}!"}