KeenWoo commited on
Commit
2560483
·
verified ·
1 Parent(s): 963ddea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -382,12 +382,14 @@ def chat_fn(user_text, audio_file, settings, chat_history):
382
  behavior_options = CONFIG.get("behavior_tags", [])
383
  emotion_options = CONFIG.get("emotion_tags", [])
384
  topic_options = CONFIG.get("topic_tags", [])
 
385
 
386
  detected_tags = detect_tags_from_query(
387
  question,
388
  behavior_options=behavior_options,
389
  emotion_options=emotion_options,
390
- topic_options=topic_options
 
391
  )
392
 
393
  scenario_tag = detected_tags.get("detected_behavior", "None")
 
382
  behavior_options = CONFIG.get("behavior_tags", [])
383
  emotion_options = CONFIG.get("emotion_tags", [])
384
  topic_options = CONFIG.get("topic_tags", [])
385
+ context_options = CONFIG.get("context_tags", []) # <-- ADD THIS LINE
386
 
387
  detected_tags = detect_tags_from_query(
388
  question,
389
  behavior_options=behavior_options,
390
  emotion_options=emotion_options,
391
+ topic_options=topic_options,
392
+ context_options=context_options # <-- ADD THIS ARGUMENT
393
  )
394
 
395
  scenario_tag = detected_tags.get("detected_behavior", "None")