Edward Nagy commited on
Commit
7ffdd10
·
unverified ·
1 Parent(s): 0fef6ce
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,13 +4,12 @@ import requests
4
  from moviepy.editor import *
5
  import os
6
 
7
- # pipe = pipeline(model="esnagy/whisper-small-hu")
8
 
9
 
10
  def transcribe_audio(audio_file):
11
  print("Transcribing audio: ", audio_file)
12
- text = "Test text"
13
- # text = pipe(audio_file)["text"]
14
  return text
15
 
16
 
 
4
  from moviepy.editor import *
5
  import os
6
 
7
+ pipe = pipeline(model="esnagy/whisper-small-hu")
8
 
9
 
10
  def transcribe_audio(audio_file):
11
  print("Transcribing audio: ", audio_file)
12
+ text = pipe(audio_file)["text"]
 
13
  return text
14
 
15