check / app.py
navpan2's picture
Update app.py
3f04dfe verified
raw
history blame
275 Bytes
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")"""
}