Krishnavamshithumma commited on
Commit
a8d175f
·
verified ·
1 Parent(s): 77caa02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def transcribe_audio_and_chat(audio_tuple, history): # Removed api_key from func
65
 
66
  if audio_tuple is None:
67
  # If no audio, raise a Gradio Error directly instead of adding to chat history
68
- raise gr.Error("No audio received. Please speak into the microphone.")
69
 
70
  samplerate, audio_np_array = audio_tuple
71
 
 
65
 
66
  if audio_tuple is None:
67
  # If no audio, raise a Gradio Error directly instead of adding to chat history
68
+ return history, history, None
69
 
70
  samplerate, audio_np_array = audio_tuple
71