Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def transcribe_inp(microphone, file_upload):
|
|
21 |
|
22 |
file = microphone if microphone is not None else file_upload
|
23 |
|
24 |
-
text = model(file)["text"]
|
25 |
|
26 |
return warn_output + text
|
27 |
|
@@ -38,7 +38,7 @@ def getAudio(url):
|
|
38 |
def getText(url):
|
39 |
if url != '':
|
40 |
output_text_transcribe = ''
|
41 |
-
res = model(getAudio(url))
|
42 |
return res['text'].strip()
|
43 |
|
44 |
|
|
|
21 |
|
22 |
file = microphone if microphone is not None else file_upload
|
23 |
|
24 |
+
text = model(file, batch_size=1024)["text"]
|
25 |
|
26 |
return warn_output + text
|
27 |
|
|
|
38 |
def getText(url):
|
39 |
if url != '':
|
40 |
output_text_transcribe = ''
|
41 |
+
res = model(getAudio(url), batch_size=1024)
|
42 |
return res['text'].strip()
|
43 |
|
44 |
|