Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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):
|