Debdeep30 commited on
Commit
0e56aa9
·
verified ·
1 Parent(s): b4728b6

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -268,7 +268,7 @@ def lumi_api(message: str, history: list[dict], profile_id: str, session_id: str
268
  new_history, session_id)
269
 
270
  print(f"[API] Success. final_id={final_id}")
271
- return response_text, _audio_b64(audio_path), avatar_tag, final_id, parsed["actions"]
272
  except Exception as e:
273
  print(f"[API Error] {e}")
274
  err_msg = "I'm sorry, I'm having a little trouble. Could you try again?"
 
268
  new_history, session_id)
269
 
270
  print(f"[API] Success. final_id={final_id}")
271
+ return response_text, _audio_b64(audio_path), avatar_tag, final_id, parsed.get("actions", [])
272
  except Exception as e:
273
  print(f"[API Error] {e}")
274
  err_msg = "I'm sorry, I'm having a little trouble. Could you try again?"