Spaces:
Build error
Build error
Update REC_INTERVAL_IN_SECONDS config
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import torchaudio.functional as F
|
|
11 |
LOGGING_FORMAT = '%(asctime)s %(message)s'
|
12 |
logging.basicConfig(format=LOGGING_FORMAT,level=logging.INFO)
|
13 |
|
14 |
-
REC_INTERVAL_IN_SECONDS =
|
15 |
|
16 |
# tmp dir to store audio files.
|
17 |
if not os.path.isdir('./tmp/'):
|
@@ -64,7 +64,6 @@ whisper_model = WhisperStreaming(model_name='base', language='en', fp16=False)
|
|
64 |
|
65 |
def transcribe(audio, state={}):
|
66 |
logging.info(f'Transcribe audio file {audio}')
|
67 |
-
print('=====================')
|
68 |
logging.info(state)
|
69 |
|
70 |
if not state:
|
|
|
11 |
LOGGING_FORMAT = '%(asctime)s %(message)s'
|
12 |
logging.basicConfig(format=LOGGING_FORMAT,level=logging.INFO)
|
13 |
|
14 |
+
REC_INTERVAL_IN_SECONDS = 2
|
15 |
|
16 |
# tmp dir to store audio files.
|
17 |
if not os.path.isdir('./tmp/'):
|
|
|
64 |
|
65 |
def transcribe(audio, state={}):
|
66 |
logging.info(f'Transcribe audio file {audio}')
|
|
|
67 |
logging.info(state)
|
68 |
|
69 |
if not state:
|