Update routers/transcription.py
Browse files- routers/transcription.py +1 -1
routers/transcription.py
CHANGED
@@ -12,7 +12,7 @@ async def transcribe(files: List[UploadFile] = File(...)):
|
|
12 |
|
13 |
@router.post("/summarize")
|
14 |
async def transcribe(request:Request):
|
15 |
-
body = request.json()
|
16 |
text = body.get('text')
|
17 |
result = 'This is a sample summary of the provided transcript.'+text
|
18 |
return JSONResponse(content={'summarized_results': result})
|
|
|
12 |
|
13 |
@router.post("/summarize")
|
14 |
async def transcribe(request:Request):
|
15 |
+
body = await request.json()
|
16 |
text = body.get('text')
|
17 |
result = 'This is a sample summary of the provided transcript.'+text
|
18 |
return JSONResponse(content={'summarized_results': result})
|