shukdevdatta123 commited on
Commit
f64ab63
·
verified ·
1 Parent(s): fd5e7a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -120,10 +120,26 @@ def show_mbti_quiz():
120
 
121
  # Main function to display the app
122
  def main():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  if api_key:
124
  show_mbti_quiz()
125
  else:
126
  st.info("Please enter your OpenAI API Key to begin the quiz.")
127
 
128
  if __name__ == "__main__":
129
- main()
 
120
 
121
  # Main function to display the app
122
  def main():
123
+ # Add instructions to the sidebar
124
+ with st.sidebar.expander("How This App Works", expanded=True):
125
+ st.write("""
126
+ ### FlexTemp Personality Test
127
+ This app is designed to help you determine your MBTI personality type based on your answers to a series of questions. The process works as follows:
128
+
129
+ 1. **Weighted MBTI Scoring**:
130
+ - Each question corresponds to a trait in the MBTI system.
131
+ - Your responses are scored on a scale from "Strongly Agree" to "Strongly Disagree", with each level being assigned a weight.
132
+ - These weights are used to calculate your MBTI type by comparing the scores of trait pairs (E/I, S/N, T/F, J/P).
133
+
134
+ 2. **LLM-Based Prediction**:
135
+ - Optionally, you can also get your MBTI type based on the answers using a language model (LLM) like GPT-4. This provides an additional prediction that may offer insights into your personality.
136
+ - The LLM is trained on vast amounts of data and can generate responses based on patterns from psychological research and real-world interactions.
137
+ """)
138
+
139
  if api_key:
140
  show_mbti_quiz()
141
  else:
142
  st.info("Please enter your OpenAI API Key to begin the quiz.")
143
 
144
  if __name__ == "__main__":
145
+ main()