SoumyaJ commited on
Commit
6f27cd5
·
verified ·
1 Parent(s): 076ac27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -46,9 +46,11 @@ def transcribe_audio(file_path):
46
  video = mp.VideoFileClip(file_path)
47
  temp_audio = generate_unique_filename(".mp3")
48
  video.audio.write_audiofile(temp_audio)
 
 
49
  model = whisper.load_model("base")
50
  transcription = model.transcribe(temp_audio)
51
- #print(f"Transcription : {transcription[:10]}")
52
 
53
  if "text" in transcription:
54
  result = transcription["text"]
 
46
  video = mp.VideoFileClip(file_path)
47
  temp_audio = generate_unique_filename(".mp3")
48
  video.audio.write_audiofile(temp_audio)
49
+
50
+ print(f"temp_audio : {temp_audio}")
51
  model = whisper.load_model("base")
52
  transcription = model.transcribe(temp_audio)
53
+
54
 
55
  if "text" in transcription:
56
  result = transcription["text"]