Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 " +
|
| 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:
|