Debdeep30 commited on
Commit
684cdbb
·
verified ·
1 Parent(s): 894efa4

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -260,12 +260,12 @@ def lumi_api(message: str, history: list[dict], profile_id: str, session_id: str
260
  f"Chat - {len(new_history)//2} turns",
261
  new_history, session_id)
262
 
263
- return response_text, _audio_b64(audio_path), avatar_tag, final_id
264
  except Exception as e:
265
  print(f"[API Error] {e}")
266
  err_msg = "I'm sorry, I'm having a little trouble. Could you try again?"
267
  audio_path, _ = _tts_and_video(err_msg, profile_id)
268
- return err_msg, _audio_b64(audio_path), "concerned", session_id
269
 
270
 
271
  def voice_submit(audio_tuple, history: list[dict], profile_id: str):
 
260
  f"Chat - {len(new_history)//2} turns",
261
  new_history, session_id)
262
 
263
+ return response_text, _audio_b64(audio_path), avatar_tag, final_id, parsed.get("action")
264
  except Exception as e:
265
  print(f"[API Error] {e}")
266
  err_msg = "I'm sorry, I'm having a little trouble. Could you try again?"
267
  audio_path, _ = _tts_and_video(err_msg, profile_id)
268
+ return err_msg, _audio_b64(audio_path), "concerned", session_id, None
269
 
270
 
271
  def voice_submit(audio_tuple, history: list[dict], profile_id: str):