mgetz commited on
Commit
471f767
·
verified ·
1 Parent(s): a1bbb6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ print(top_results)
109
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
110
 
111
  def respond(message, history):
112
- duck_chunks = get_top_chunks(message, chunk_embeddings, text_chunks)
113
  print(duck_chunks)
114
  duck_info = "\n".join(duck_chunks)
115
  messages = [{"role": "system", "content": f"You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions. Make sure to use duck-themed references in your responses. Base your response on the provided context: {duck_info}"}]
 
109
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
110
 
111
  def respond(message, history):
112
+ duck_chunks = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
113
  print(duck_chunks)
114
  duck_info = "\n".join(duck_chunks)
115
  messages = [{"role": "system", "content": f"You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions. Make sure to use duck-themed references in your responses. Base your response on the provided context: {duck_info}"}]