aminahmed78 commited on
Commit
3d78fb4
·
verified ·
1 Parent(s): 1a07b30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-medium")
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