tengattack commited on
Commit
d151b7d
·
1 Parent(s): 2541285

Fix undefined variable 'tik' for non-API mode

Browse files
Files changed (1) hide show
  1. webui/omni_gradio.py +1 -0
webui/omni_gradio.py CHANGED
@@ -50,6 +50,7 @@ def process_audio(audio):
50
  except Exception as e:
51
  print(f"error: {e}")
52
  else:
 
53
  for chunk in omni_client.run_AT_batch_stream(filepath):
54
  # Convert chunk to numpy array
55
  if cnt == 0:
 
50
  except Exception as e:
51
  print(f"error: {e}")
52
  else:
53
+ tik = time.time()
54
  for chunk in omni_client.run_AT_batch_stream(filepath):
55
  # Convert chunk to numpy array
56
  if cnt == 0: