Krishnavamshithumma commited on
Commit
d385318
·
verified ·
1 Parent(s): 856d977

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def transcribe_audio_and_chat(audio_tuple, history, api_key):
32
 
33
  if audio_tuple is None:
34
  # If no audio is received, add an assistant message to history and reset audio input
35
- raise gr.Error("No audio received. Please speak into the microphone.")
36
 
37
  # Ensure history is a list, even if it somehow became None (defensive programming)
38
  if history is None:
 
32
 
33
  if audio_tuple is None:
34
  # If no audio is received, add an assistant message to history and reset audio input
35
+ return history, history, None
36
 
37
  # Ensure history is a list, even if it somehow became None (defensive programming)
38
  if history is None: