Testys commited on
Commit
963795e
·
verified ·
1 Parent(s): 41945cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -136,6 +136,9 @@ def process_live_frame(frame):
136
  # If we got text, it means we can start an alert.
137
  # We return the generator function itself. Gradio will handle it.
138
  audio_output = stream_alert_audio(alert_text)
 
 
 
139
 
140
  # On subsequent frames where the user is drowsy, trigger_alert() will return None
141
  # due to the cooldown, preventing a new stream from starting, which is what we want.
 
136
  # If we got text, it means we can start an alert.
137
  # We return the generator function itself. Gradio will handle it.
138
  audio_output = stream_alert_audio(alert_text)
139
+ else:
140
+ alert_text = "WAKE UP"
141
+ audio_output = stream_alert_audio(alert_text)
142
 
143
  # On subsequent frames where the user is drowsy, trigger_alert() will return None
144
  # due to the cooldown, preventing a new stream from starting, which is what we want.