kaitwithkwk commited on
Commit
3c2146a
·
verified ·
1 Parent(s): 6979c68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 this information to inform your response: {context}"}]
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)