Spaces:
Runtime error
Runtime error
from typing import Optional | |
from fastapi import FastAPI | |
app = FastAPI() | |
async def root(): | |
return {"message": "Hello World"} | |
def read_item(item_id: int, q: Optional[str] = None): | |
return {"item_id": item_id, "q": q} |