on1onmangoes commited on
Commit
afe395d
·
verified ·
1 Parent(s): a0dc948

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -592,6 +592,11 @@ def response(audio: tuple[int, np.ndarray], conversation_llm_format: list[dict],
592
  # added by al on 111524
593
  query = prompt # Use the transcribed text as the query for semantic search
594
 
 
 
 
 
 
595
  #prompt += "\n\n" + semantic_search(query)
596
 
597
  ## added by al on 111724 to add the context from the dataset directly to the query
 
592
  # added by al on 111524
593
  query = prompt # Use the transcribed text as the query for semantic search
594
 
595
+
596
+ ## added by al on 1204 24 for hey annie test
597
+ if "hey annie" not in prompt.lower():
598
+ return
599
+
600
  #prompt += "\n\n" + semantic_search(query)
601
 
602
  ## added by al on 111724 to add the context from the dataset directly to the query