Update app.py
Browse files
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 |
|