Yuvalamitay commited on
Commit
1a318a0
·
verified ·
1 Parent(s): 697e5e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -108,9 +108,10 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
108
  def respond(message, history):
109
  best_next_watch = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
110
  print(best_next_watch)
 
111
  messages = [
112
  {"role":"system",
113
- "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+ " ."
114
  }
115
  ]
116
  if history:
 
108
  def respond(message, history):
109
  best_next_watch = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
110
  print(best_next_watch)
111
+ str_watch_chunks = "/n".join(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 " + str_watch_chunks+ " ."
115
  }
116
  ]
117
  if history: