Omkar008 commited on
Commit
b21a26b
·
verified ·
1 Parent(s): ea5fab8

Update routers/transcription.py

Browse files
Files changed (1) hide show
  1. 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})