elinstallation commited on
Commit
d88068f
·
verified ·
1 Parent(s): a51f330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ client= InferenceClient("Qwen/Qwen2.5-7B-Instruct-1M")
124
 
125
  #defining role of AI and user
126
  def respond(message,history):
127
- information = get_top_chunks(message, cleaned_chunks, top_chunks)
128
 
129
 
130
  messages = [{"role": "assistant", "content": f"You are a friendly chatbot that gives advice to disadvantaged students about their education based on their question. When you give advice, keep in mind the following infromation {information}"}]
 
124
 
125
  #defining role of AI and user
126
  def respond(message,history):
127
+ information = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
128
 
129
 
130
  messages = [{"role": "assistant", "content": f"You are a friendly chatbot that gives advice to disadvantaged students about their education based on their question. When you give advice, keep in mind the following infromation {information}"}]