a.pourmand commited on
Commit
3e79246
1 Parent(s): 8c29c3b
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -67,9 +67,10 @@ def predict(target_language, number_of_speakers, audio_source, input_audio_mic,
67
  api_name="/run"
68
  )
69
  current_text = f'start: {turn.start:.1f} end: {turn.end:.1f} text: {result} speaker: {speaker}'
70
- yield current_text
71
- #if current_text is not None:
72
- # output_text = output_text + "\n" + current_text
 
73
 
74
 
75
  except Exception as e:
 
67
  api_name="/run"
68
  )
69
  current_text = f'start: {turn.start:.1f} end: {turn.end:.1f} text: {result} speaker: {speaker}'
70
+
71
+ if current_text is not None:
72
+ output_text = output_text + "\n" + current_text
73
+ yield output_text
74
 
75
 
76
  except Exception as e: