Manasa1 commited on
Commit
c62f98f
·
verified ·
1 Parent(s): 718cf9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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's writing style, tone, and phrasing. "
97
- f"Craft your response to mimic the author's unique voice based on these observations. "
98
- f"Answer the question below as if you were the author, capturing their personality and style:\n\n{user_input}"
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 authors 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})