Update app.py
Browse files
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 |
-
|
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:
|