uumerrr684 commited on
Commit
71b0c15
Β·
verified Β·
1 Parent(s): 1e5d194

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -518,7 +518,7 @@ Instructions:
518
  - Use the document information as your foundation
519
  - Expand with logical personality traits and qualities someone like this would have
520
  - Add 3-4 additional lines of thoughtful insights about their character
521
- - Use 3-4 relevant emojis throughout the response to make it warm and engaging
522
  - Write in a caring, family-friend tone
523
  - If someone asks about relationships (like "mother" = "mama"), make those connections
524
  - Make the response feel personal and detailed, not just a basic fact
@@ -811,11 +811,11 @@ with st.sidebar:
811
  else:
812
  st.error("Failed to index documents. Check your documents folder.")
813
 
814
- # Show document count only (hidden for privacy)
815
  if os.path.exists("documents"):
816
  txt_files = [f for f in os.listdir("documents") if f.endswith('.txt')]
817
  if txt_files:
818
- st.info(f"πŸ“„ {len(txt_files)} family profile documents loaded (hidden for privacy)")
819
 
820
  # Manual upload interface (fallback)
821
  st.subheader("πŸ“€ Manual Upload")
@@ -866,7 +866,7 @@ with st.sidebar:
866
  # API Status with better checking
867
  openrouter_key = os.environ.get("OPENROUTER_API_KEY")
868
  if openrouter_key:
869
- st.success("🟒 OpenRouter API Connected")
870
  # Quick API test
871
  if st.button("Test API Connection", use_container_width=True):
872
  try:
 
518
  - Use the document information as your foundation
519
  - Expand with logical personality traits and qualities someone like this would have
520
  - Add 3-4 additional lines of thoughtful insights about their character
521
+ - Use 5-6 relevant emojis throughout the response to make it warm and engaging
522
  - Write in a caring, family-friend tone
523
  - If someone asks about relationships (like "mother" = "mama"), make those connections
524
  - Make the response feel personal and detailed, not just a basic fact
 
811
  else:
812
  st.error("Failed to index documents. Check your documents folder.")
813
 
814
+ # Show document count only (hidden)
815
  if os.path.exists("documents"):
816
  txt_files = [f for f in os.listdir("documents") if f.endswith('.txt')]
817
  if txt_files:
818
+ st.info(f"πŸ“„ {len(txt_files)} documents loaded (hidden)")
819
 
820
  # Manual upload interface (fallback)
821
  st.subheader("πŸ“€ Manual Upload")
 
866
  # API Status with better checking
867
  openrouter_key = os.environ.get("OPENROUTER_API_KEY")
868
  if openrouter_key:
869
+ st.success(" βœ… API Connected")
870
  # Quick API test
871
  if st.button("Test API Connection", use_container_width=True):
872
  try: