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