Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -698,14 +698,7 @@ class NutritionBot:
|
|
698 |
st.write("Context: ", context)
|
699 |
|
700 |
# Prepare a prompt combining past context and the current query
|
701 |
-
prompt = f"""
|
702 |
-
Context:
|
703 |
-
{context}
|
704 |
-
|
705 |
-
Current customer query: {query}
|
706 |
-
|
707 |
-
Provide a helpful response that takes into account any relevant past interactions.
|
708 |
-
"""
|
709 |
print("Got prepare for invoke...")
|
710 |
|
711 |
# Generate a response using the agent
|
|
|
698 |
st.write("Context: ", context)
|
699 |
|
700 |
# Prepare a prompt combining past context and the current query
|
701 |
+
prompt = f"""Context: {context}; Current customer query: {query}; Provide a helpful response that takes into account any relevant past interactions."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
print("Got prepare for invoke...")
|
703 |
|
704 |
# Generate a response using the agent
|