smriti-m commited on
Commit
59a87e2
·
verified ·
1 Parent(s): 0a7cea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -103,13 +103,15 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
103
  # Return the list of most relevant chunks
104
  return top_chunks
105
 
106
- best_next_watch = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
107
  print(best_next_watch)
108
 
109
  def respond(message, history):
 
 
110
  messages = [
111
  {"role":"system",
112
- "content": "You are a gen-z helpful chatbot that helps teenagers find their next best watch, speak in gen-z terms and be natural"
113
  }
114
  ]
115
  if history:
 
103
  # Return the list of most relevant chunks
104
  return top_chunks
105
 
106
+
107
  print(best_next_watch)
108
 
109
  def respond(message, history):
110
+ best_next_watch = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
111
+ print(best_next_watch)
112
  messages = [
113
  {"role":"system",
114
+ "content": "You are a gen-z helpful chatbot that helps teenagers find their next best watch, speak in gen-z terms and be natural. You should answer the users question based on " + best_next_watch+ " ."
115
  }
116
  ]
117
  if history: