Spaces:
Build error
Build error
ahmedghani
commited on
Commit
•
076c808
1
Parent(s):
45f4e47
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ print("ASR model loaded!")
|
|
19 |
|
20 |
def transcribe_audio(audiopath):
|
21 |
audio_input, sr = sf.read(audiopath)
|
22 |
-
return pipe(audio_input,
|
23 |
|
24 |
def separator(audio, rec_audio, example):
|
25 |
outputs= {}
|
|
|
19 |
|
20 |
def transcribe_audio(audiopath):
|
21 |
audio_input, sr = sf.read(audiopath)
|
22 |
+
return pipe(audio_input, max_new_tokens=500)['text']
|
23 |
|
24 |
def separator(audio, rec_audio, example):
|
25 |
outputs= {}
|