Spaces:
Sleeping
Sleeping
Ubuntu
commited on
Commit
•
d098eb3
1
Parent(s):
f3fbcc1
add parameter
Browse files
app.py
CHANGED
@@ -120,7 +120,8 @@ def transcribe_and_speak(audio, source_lang, target_lang, youtube_url=None):
|
|
120 |
files = {'file': open(audio, 'rb')}
|
121 |
data = {
|
122 |
'language': 'ms' if source_lang == 'ma' else source_lang,
|
123 |
-
'model_name': 'whisper-large-v2-local-cs'
|
|
|
124 |
}
|
125 |
|
126 |
asr_response = requests.post(ASR_API, files=files, data=data)
|
|
|
120 |
files = {'file': open(audio, 'rb')}
|
121 |
data = {
|
122 |
'language': 'ms' if source_lang == 'ma' else source_lang,
|
123 |
+
'model_name': 'whisper-large-v2-local-cs',
|
124 |
+
'with_timestamp': False
|
125 |
}
|
126 |
|
127 |
asr_response = requests.post(ASR_API, files=files, data=data)
|