Update app.py
Browse files
app.py
CHANGED
|
@@ -188,7 +188,7 @@ def process_media(file_path, is_url=False):
|
|
| 188 |
formatted_transcript = f"Speaker 1: {transcription}"
|
| 189 |
|
| 190 |
transcription_text = formatted_transcript
|
| 191 |
-
generated_file = io.
|
| 192 |
logger.info("Transcription and diarization completed successfully")
|
| 193 |
return "Transcription and diarization completed successfully!", True
|
| 194 |
except Exception as e:
|
|
|
|
| 188 |
formatted_transcript = f"Speaker 1: {transcription}"
|
| 189 |
|
| 190 |
transcription_text = formatted_transcript
|
| 191 |
+
generated_file = io.BytesIO(transcription_text.encode()) # Corrected from BytsIO to BytesIO
|
| 192 |
logger.info("Transcription and diarization completed successfully")
|
| 193 |
return "Transcription and diarization completed successfully!", True
|
| 194 |
except Exception as e:
|