From d9ca829c24eaf1f5e1bf2ba3b0c8e3e20e2c53c0 Mon Sep 17 00:00:00 2001 From: tengattack Date: Fri, 6 Sep 2024 01:08:36 +0800 Subject: [PATCH] Fix undefined variable 'tik' for non-API mode --- webui/omni_gradio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webui/omni_gradio.py b/webui/omni_gradio.py index e3a60b9..5d17803 100644 --- a/webui/omni_gradio.py +++ b/webui/omni_gradio.py @@ -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: