Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
app = FastAPI(title="Deploying FastAPI Apps on Huggingface") | |
def api_home(): | |
return {'detail': 'Welcome to FastAPI Tutorial!'} | |
def hello(name: str): | |
return {'message': f"hello {name}!"} |