Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,10 +92,10 @@ if user_input:
|
|
92 |
|
93 |
# Add prompt for style adaptation
|
94 |
style_prompt = (
|
95 |
-
f"Respond in the same style as the person in the uploaded document. "
|
96 |
-
f"Analyze the PDF to understand the author
|
97 |
-
f"
|
98 |
-
f"Answer the question below as if you were the author,
|
99 |
)
|
100 |
|
101 |
response = st.session_state.conversation_chain({"question": style_prompt})
|
|
|
92 |
|
93 |
# Add prompt for style adaptation
|
94 |
style_prompt = (
|
95 |
+
f"Respond in the same style and with the same mentality as the person in the uploaded document. "
|
96 |
+
f"Analyze the PDF to understand the author’s way of thinking, attitudes, personality, and values. "
|
97 |
+
f"Replicate this mentality by capturing their perspective, reasoning style, and tone in your response. "
|
98 |
+
f"Answer the question below as if you were the author, preserving their personality, mindset, and outlook:\n\n{user_input}"
|
99 |
)
|
100 |
|
101 |
response = st.session_state.conversation_chain({"question": style_prompt})
|