Saiyaswanth007 commited on
Commit
c599045
·
1 Parent(s): fc10265

Code fixing

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -553,6 +553,10 @@ class DiarizationHandler(AsyncStreamHandler):
553
  def __init__(self, diarization_system):
554
  super().__init__()
555
  self.diarization_system = diarization_system
 
 
 
 
556
 
557
  async def emit(self):
558
  """Not used in this implementation"""
 
553
  def __init__(self, diarization_system):
554
  super().__init__()
555
  self.diarization_system = diarization_system
556
+
557
+ def copy(self):
558
+ # Return a fresh handler for each new stream connection
559
+ return DiarizationHandler(self.diarization_system)
560
 
561
  async def emit(self):
562
  """Not used in this implementation"""