Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
| 45 |
|
| 46 |
def respond(message, history):
|
| 47 |
context = get_relevant_context(message, top_k=3)
|
| 48 |
-
messages = [{"role": "system", "content": f"You are chatbot specializing in Austin coffee shops. Use
|
| 49 |
|
| 50 |
if history:
|
| 51 |
messages.extend(history)
|
|
|
|
| 45 |
|
| 46 |
def respond(message, history):
|
| 47 |
context = get_relevant_context(message, top_k=3)
|
| 48 |
+
messages = [{"role": "system", "content": f"You are chatbot specializing in Austin coffee shops. Use the following reviews to recommend coffee shops: {context}. The name of the coffee shop is listed first before the '|' in each review."}]
|
| 49 |
|
| 50 |
if history:
|
| 51 |
messages.extend(history)
|