from fastapi import FastAPI app = FastAPI() @app.get("/") def root(): return {"message": "Hello from Hugging Face Docker!"} @app.get("/replacement") def get_replacement(): return {"text": "This is from the server!"}