shijunju commited on
Commit
b06bb88
·
verified ·
1 Parent(s): 299760c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def transcribe_speech(filepath):
22
 
23
  # Extract and format the transcribed text
24
  if isinstance(output, dict) and "chunks" in output:
25
- transcribed_text = "\n".join([chunk['timestamp'] + '\n' + chunk["text"] for chunk in output["chunks"]])
26
  else:
27
  transcribed_text = output.get("text", str(output))
28
 
 
22
 
23
  # Extract and format the transcribed text
24
  if isinstance(output, dict) and "chunks" in output:
25
+ transcribed_text = "\n\n".join([str(chunk['timestamp']) + '\n' + chunk["text"] for chunk in output["chunks"]])
26
  else:
27
  transcribed_text = output.get("text", str(output))
28