Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -291,6 +291,8 @@ def generate_subtitles(audio_file_path, prompt, language, auto_detect_language):
|
|
291 |
temperature=0.0,
|
292 |
)
|
293 |
|
|
|
|
|
294 |
srt_content = create_srt_from_json(transcription_json)
|
295 |
return srt_content
|
296 |
|
|
|
291 |
temperature=0.0,
|
292 |
)
|
293 |
|
294 |
+
transcription_json = json.loads(transcription_json.to_json())
|
295 |
+
|
296 |
srt_content = create_srt_from_json(transcription_json)
|
297 |
return srt_content
|
298 |
|