mutisya commited on
Commit
e85afdf
·
verified ·
1 Parent(s): bbb211a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,8 +62,8 @@ async def recognize_audio(audio: UploadFile = File(...), language: str = Form("e
62
  for segment in segments:
63
  transcription_result.append({
64
  "word": segment['text'],
65
- "startTime": segment['timestamp'][0],
66
- "endTime": segment['timestamp'][1]
67
  })
68
 
69
 
 
62
  for segment in segments:
63
  transcription_result.append({
64
  "word": segment['text'],
65
+ "startTime": round(segment['timestamp'][0],1),
66
+ "endTime": round(segment['timestamp'][1],1)
67
  })
68
 
69