NurseCitizenDeveloper commited on
Commit
8bed01a
·
verified ·
1 Parent(s): 727a543

Upload live_app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. live_app.py +4 -0
live_app.py CHANGED
@@ -63,6 +63,10 @@ class LiveTranslationHandler(StreamHandler):
63
  # Return silence while buffering
64
  return np.zeros(self.output_frame_size, dtype=np.float32)
65
 
 
 
 
 
66
  def _process_and_respond(self):
67
  """Process accumulated audio and return translated TTS."""
68
  if not self.audio_buffer:
 
63
  # Return silence while buffering
64
  return np.zeros(self.output_frame_size, dtype=np.float32)
65
 
66
+ def emit(self, msg: str):
67
+ """Emit a message to the UI (required abstract method)."""
68
+ pass
69
+
70
  def _process_and_respond(self):
71
  """Process accumulated audio and return translated TTS."""
72
  if not self.audio_buffer: