tanyadhast commited on
Commit
28505aa
·
verified ·
1 Parent(s): 4304410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
103
 
104
  client = InferenceClient('Qwen/Qwen2.5-7B-Instruct-1M')
105
  def respond(message, history):
106
- info = get_top_chunks(message, chunk_embeddings, text_chunks)
107
  messages = [{'role': 'system', 'content': f'You are a friendly chatbot using {info} to answer questions'}]
108
 
109
  if history:
 
103
 
104
  client = InferenceClient('Qwen/Qwen2.5-7B-Instruct-1M')
105
  def respond(message, history):
106
+ info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
107
  messages = [{'role': 'system', 'content': f'You are a friendly chatbot using {info} to answer questions'}]
108
 
109
  if history: