from fastapi import FastAPI app = FastAPI() @app.get("/") def root(): return {"message": "Hello from Hugging Face Docker!"} @app.get("/replacement") def get_code(): return { "text": """def greet(name): print(f"Hello, {name}!") greet("World")""" }