rodrigomasini commited on
Commit
9aa4381
·
verified ·
1 Parent(s): 3b8ad98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -170,7 +170,7 @@ def chatbot_conversation(audio_file_path, history):
170
  print(token)
171
  response += token
172
  # Yield partial text updates, no audio yet, history unchanged yet
173
- return response, None, history
174
  except Exception as e:
175
  print(f"[ERROR] Error during streaming response: {e}")
176
  yield ("I could not understand you. Please try again.", None, history)
 
170
  print(token)
171
  response += token
172
  # Yield partial text updates, no audio yet, history unchanged yet
173
+ yield(response, None, history)
174
  except Exception as e:
175
  print(f"[ERROR] Error during streaming response: {e}")
176
  yield ("I could not understand you. Please try again.", None, history)