File size: 331 Bytes
d57b505
6afa36a
cdc5783
 
 
 
 
 
 
 
 
6afa36a
 
 
 
d57b505
cdc5783
d57b505
a3a6ac3
67c90db
eed9cc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from fastapi import FastAPI
from pydantic import BaseModel

app = FastAPI()


@app.get("/")
async def root():
    return {"message": "Hello World"}


class SummaryReq(BaseModel):
    text: str
    key: str


@app.post("/summary/")
async def summary(request: SummaryReq):
    print('=============')
    print(request)
    return ''