Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,8 @@ def chat_with_gemini(user_input, history):
|
|
63 |
|
64 |
def process_audio(audio, history):
|
65 |
"""Process audio input, convert to text, and get response."""
|
66 |
-
if audio
|
67 |
-
return
|
68 |
|
69 |
# Convert audio to text
|
70 |
user_input = transcribe_audio(audio)
|
|
|
63 |
|
64 |
def process_audio(audio, history):
|
65 |
"""Process audio input, convert to text, and get response."""
|
66 |
+
if not audio: # This checks for both None and empty input
|
67 |
+
return None, history, None
|
68 |
|
69 |
# Convert audio to text
|
70 |
user_input = transcribe_audio(audio)
|