from fastapi import FastAPI from transformers import pipeline app = FastAPI() @app.get("/") def index(): return {"output": "Hello world!"}