liumaolin
commited on
Commit
·
80839d5
1
Parent(s):
0c9fcfc
Disable FunASR pbar.
Browse files
transcribe/helpers/funasr.py
CHANGED
|
@@ -30,7 +30,7 @@ class FunASR:
|
|
| 30 |
audio_frames = np.frombuffer(audio_buffer, dtype=np.float32)
|
| 31 |
# sf.write(f'{config.ASSERT_DIR}/{time.time()}.wav', audio_frames, samplerate=16000)
|
| 32 |
try:
|
| 33 |
-
output = self.model.generate(input=audio_frames)
|
| 34 |
return output
|
| 35 |
except Exception as e:
|
| 36 |
logger.error(e)
|
|
|
|
| 30 |
audio_frames = np.frombuffer(audio_buffer, dtype=np.float32)
|
| 31 |
# sf.write(f'{config.ASSERT_DIR}/{time.time()}.wav', audio_frames, samplerate=16000)
|
| 32 |
try:
|
| 33 |
+
output = self.model.generate(input=audio_frames, disable_pbar=True)
|
| 34 |
return output
|
| 35 |
except Exception as e:
|
| 36 |
logger.error(e)
|