AcadiaDawnHolve commited on
Commit
9121da2
·
verified ·
1 Parent(s): f1a0e2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ client = InferenceClient("Qwen/Qwen2.5-7B-Instruct", token=os.getenv("ByteShield
75
  def respond(message, history):
76
  top_chunks = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
77
  context = "\n".join(top_chunks)
78
- messages = [{"role": "system","content": f"You are a friendly, tech expert chatbot. You help people determin whether or not something is a scam. You provide and explination of your resoning on whether or not it is. And you help educate people as well. Use this context to answer:\n{context}"}]
79
 
80
  if history:
81
  messages.extend(history)
 
75
  def respond(message, history):
76
  top_chunks = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
77
  context = "\n".join(top_chunks)
78
+ messages = [{"role": "system","content": f"You are a friendly, tech expert chatbot. Use this context to answer:\n{context}"}]
79
 
80
  if history:
81
  messages.extend(history)