Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import tempfile
|
|
7 |
def initialize_model():
|
8 |
try:
|
9 |
# Load ASR (Automatic Speech Recognition) model for voice-to-text
|
10 |
-
asr_model = pipeline("automatic-speech-recognition", model="openai/whisper-
|
11 |
|
12 |
# Load Translation model (supports multiple language pairs)
|
13 |
translation_model = pipeline("translation", model="Helsinki-NLP/opus-mt-en-mul") # Choose a supported model
|
|
|
7 |
def initialize_model():
|
8 |
try:
|
9 |
# Load ASR (Automatic Speech Recognition) model for voice-to-text
|
10 |
+
asr_model = pipeline("automatic-speech-recognition", model="openai/whisper-small")
|
11 |
|
12 |
# Load Translation model (supports multiple language pairs)
|
13 |
translation_model = pipeline("translation", model="Helsinki-NLP/opus-mt-en-mul") # Choose a supported model
|