Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -694,8 +694,11 @@ class NutritionBot:
|
|
694 |
context += f"Support: {memory['memory']}\n" # Chatbot's past responses
|
695 |
context += "---\n"
|
696 |
|
|
|
|
|
|
|
697 |
# Print context for debugging purposes
|
698 |
-
|
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."""
|
|
|
694 |
context += f"Support: {memory['memory']}\n" # Chatbot's past responses
|
695 |
context += "---\n"
|
696 |
|
697 |
+
context += f"""{context}"""
|
698 |
+
st.write("Got context...")
|
699 |
+
|
700 |
# Print context for debugging purposes
|
701 |
+
st.write("Context: ", context)
|
702 |
|
703 |
# Prepare a prompt combining past context and the current query
|
704 |
#prompt = f"""Context: {context}; Current customer query: {query}; Provide a helpful response that takes into account any relevant past interactions."""
|