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

Update routers/transcription.py

Browse files
Files changed (1) hide show
  1. routers/transcription.py +4 -0
routers/transcription.py CHANGED
@@ -8,6 +8,8 @@ router = APIRouter()
8
  @router.post("/transcribe")
9
  async def transcribe(files: List[UploadFile] = File(...)):
10
  results = await process_uploaded_files(files)
 
 
11
  return JSONResponse(content={'results': results})
12
 
13
  @router.post("/summarize")
@@ -15,5 +17,7 @@ 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})
19
 
 
8
  @router.post("/transcribe")
9
  async def transcribe(files: List[UploadFile] = File(...)):
10
  results = await process_uploaded_files(files)
11
+ print("Audio Text")
12
+ print(results)
13
  return JSONResponse(content={'results': results})
14
 
15
  @router.post("/summarize")
 
17
  body = await request.json()
18
  text = body.get('text')
19
  result = 'This is a sample summary of the provided transcript.'+text
20
+ print("summarize")
21
+ print(result)
22
  return JSONResponse(content={'summarized_results': result})
23