Spaces:
Runtime error
Runtime error
from fastapi import FastAPI | |
# FastAPI ์ธ์คํด์ค ์์ฑ | |
app = FastAPI() | |
# ๋ผ์ฐํธ ์์ฑ | |
def read_root(): | |
return {"Hello": "World"} | |
def read_item(item_id: int, q: str = None): | |
return {"item_id": item_id, "q": q} |