Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,8 @@ from Levenshtein import distance as lev_distance
|
|
| 7 |
import whisper
|
| 8 |
|
| 9 |
# Load Whisper model once (choose "small" or "medium" for better results)
|
| 10 |
-
model = whisper.load_model("small")
|
|
|
|
| 11 |
|
| 12 |
def play_text(text):
|
| 13 |
tts = gTTS(text=text, lang='hi', slow=False)
|
|
|
|
| 7 |
import whisper
|
| 8 |
|
| 9 |
# Load Whisper model once (choose "small" or "medium" for better results)
|
| 10 |
+
#model = whisper.load_model("small")
|
| 11 |
+
model = whisper.load_model("large-v3")
|
| 12 |
|
| 13 |
def play_text(text):
|
| 14 |
tts = gTTS(text=text, lang='hi', slow=False)
|