Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ def translate_better(audio):
|
|
82 |
Sending audio to Whisper ...
|
83 |
β
|
84 |
""")
|
85 |
-
transcribe_text_result = whisper(audio, None, "transcribe",
|
86 |
-
translate_text_result = whisper(audio, None, "translate",
|
87 |
print("transcript: " + transcribe_text_result)
|
88 |
print("βββββββββββββββββββββββββββββββββββββββββββ")
|
89 |
print("translated: " + translate_text_result)
|
|
|
82 |
Sending audio to Whisper ...
|
83 |
β
|
84 |
""")
|
85 |
+
transcribe_text_result = whisper(audio, None, "transcribe", api_name="predict")
|
86 |
+
translate_text_result = whisper(audio, None, "translate", api_name="predict")
|
87 |
print("transcript: " + transcribe_text_result)
|
88 |
print("βββββββββββββββββββββββββββββββββββββββββββ")
|
89 |
print("translated: " + translate_text_result)
|