ANASAKHTAR commited on
Commit
75d9266
·
verified ·
1 Parent(s): b2327ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def translate_text(text, destination_language):
45
 
46
  # Initialize the speech-to-text pipeline (Whisper model)
47
  # Use a pipeline as a high-level helper
48
- pipe = pipeline("text-to-audio", model="facebook/musicgen-small")
49
 
50
  # Function to transcribe audio to text
51
  def transcribe_audio(audio_file, destination_language):
 
45
 
46
  # Initialize the speech-to-text pipeline (Whisper model)
47
  # Use a pipeline as a high-level helper
48
+ speech_to_text = pipeline("text-to-audio", model="facebook/musicgen-small")
49
 
50
  # Function to transcribe audio to text
51
  def transcribe_audio(audio_file, destination_language):