mirror of
https://github.com/gpt-omni/mini-omni
synced 2024-11-21 23:37:38 +00:00
Merge pull request #27 from tengattack/patch/nonapimode
Fix undefined variable 'tik' for non-API mode
This commit is contained in:
commit
f076c72070
@ -50,6 +50,7 @@ def process_audio(audio):
|
||||
except Exception as e:
|
||||
print(f"error: {e}")
|
||||
else:
|
||||
tik = time.time()
|
||||
for chunk in omni_client.run_AT_batch_stream(filepath):
|
||||
# Convert chunk to numpy array
|
||||
if cnt == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user