GoodML commited on
Commit
bb47241
·
verified ·
1 Parent(s): ef30c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def transcribe_audio(video_path):
115
  print(f"Transcribing video: {video_path}")
116
  result = whisper_model.transcribe(video_path)
117
 
118
- return result.get("text", "").strip()
119
 
120
  except Exception as e:
121
  print(f"Error in transcription4: {e}")
 
115
  print(f"Transcribing video: {video_path}")
116
  result = whisper_model.transcribe(video_path)
117
 
118
+ return result['text']
119
 
120
  except Exception as e:
121
  print(f"Error in transcription4: {e}")