9 lines
180 B
Python
9 lines
180 B
Python
|
from fastapi import FastAPI
|
||
|
|
||
|
app = FastAPI()
|
||
|
|
||
|
|
||
|
@app.get("/keyword-weights/", response_model=dict[str, float])
|
||
|
async def read_keyword_weights():
|
||
|
return {"foo": 2.3, "bar": 3.4}
|