from fastapi import FastAPI app = FastAPI() @app.get("/generate") def generate(text: str): return {"output": text}