Charan5775 commited on
Commit
393ac47
·
verified ·
1 Parent(s): 15f3e71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ async def transcribe(file: UploadFile = File(...)):
19
 
20
  start = time()
21
  segments = model.transcribe(audio_path)
22
- text = " ".join(seg.text for seg in segments])
23
  os.remove(audio_path)
24
 
25
  return {"text": text}
 
19
 
20
  start = time()
21
  segments = model.transcribe(audio_path)
22
+ text = " ".join(seg.text for seg in segments)
23
  os.remove(audio_path)
24
 
25
  return {"text": text}