jenngang commited on
Commit
7930ff6
·
verified ·
1 Parent(s): b7d48d7

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- #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."""
 
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."""