Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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
|
| 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)}
|
| 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("
|
| 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:
|