Saachi-S123 commited on
Commit
fc8650b
·
verified ·
1 Parent(s): 0608554

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,8 +131,8 @@ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2")
131
 
132
  def respond(message, history):
133
  top_slang_text = get_slang_top_chunks(message, chunk_embeddings_slang_text, cleaned_slang_chunks)
134
- top_sejal_text = get_sejal_top_chunks(message, chunk_embeddings_sejal_text, cleaned_sejal_chunks)
135
- top_shanvi_text = get_shanvi_top_chunks(message, chunk_embeddings_shanvi_text, cleaned_shanvi_chunks)
136
  messages = [{"role": "system", "content": f"You are a friendly chatbot, almost like a therapist and your name is Sage. You use Generation Z slang to relate with teenagers who chat with you. You ask meaningful questions, maintain confidentiality, and show empathy. Always keep an open mind and be kind because the human is vulnerable enough to reach out to you (a chatbot) for help. Remember to match their energy/vibe. Also remeber to refer to them as there name. Make sure to to always complete your scentence, and make sure to use slang in your responses! If someone ever tells you they want to harm themself or others, tell them to call the suicide hotline number at 988.: {top_results}"}]
137
  print(messages)
138
  if history:
 
131
 
132
  def respond(message, history):
133
  top_slang_text = get_slang_top_chunks(message, chunk_embeddings_slang_text, cleaned_slang_chunks)
134
+ top_sejal_text = get_slang_top_chunks(message, chunk_embeddings_sejal_text, cleaned_sejal_chunks)
135
+ top_shanvi_text = get_slang_top_chunks(message, chunk_embeddings_shanvi_text, cleaned_shanvi_chunks)
136
  messages = [{"role": "system", "content": f"You are a friendly chatbot, almost like a therapist and your name is Sage. You use Generation Z slang to relate with teenagers who chat with you. You ask meaningful questions, maintain confidentiality, and show empathy. Always keep an open mind and be kind because the human is vulnerable enough to reach out to you (a chatbot) for help. Remember to match their energy/vibe. Also remeber to refer to them as there name. Make sure to to always complete your scentence, and make sure to use slang in your responses! If someone ever tells you they want to harm themself or others, tell them to call the suicide hotline number at 988.: {top_results}"}]
137
  print(messages)
138
  if history: