tarrasyed19472007 commited on
Commit
29ef757
·
verified ·
1 Parent(s): 7b937b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -5,13 +5,11 @@ from transformers import pipeline
5
  # Emotion classifier (use a pre-trained model from Hugging Face)
6
  emotion_analyzer = pipeline("text-classification", model="distilbert-base-uncased")
7
 
8
- # Question Database
9
  questions = [
10
- "How are you feeling right now?",
11
- "What’s something that’s been on your mind lately?",
12
- "Do you feel energized or tired at this moment?",
13
- "What’s the most significant event in your day so far?",
14
- "If you had to describe your mood in one word, what would it be?",
15
  ]
16
 
17
  # Expanded Mood States
@@ -92,7 +90,7 @@ def main():
92
  st.title("Mood Analysis and Suggestions")
93
 
94
  # Step 1: Display the questions
95
- st.write("Answer the following 5 questions to help us understand your mood:")
96
  responses = []
97
  for i, question in enumerate(questions, start=1):
98
  response = st.text_input(f"{i}. {question}")
 
5
  # Emotion classifier (use a pre-trained model from Hugging Face)
6
  emotion_analyzer = pipeline("text-classification", model="distilbert-base-uncased")
7
 
8
+ # Updated Question Database (Doctor-prescribed questions)
9
  questions = [
10
+ "How are you feeling emotionally right now?",
11
+ "What physical sensations or discomfort are you experiencing?",
12
+ "Is there something specific that's been troubling your thoughts?"
 
 
13
  ]
14
 
15
  # Expanded Mood States
 
90
  st.title("Mood Analysis and Suggestions")
91
 
92
  # Step 1: Display the questions
93
+ st.write("Answer the following 3 questions to help us understand your mood:")
94
  responses = []
95
  for i, question in enumerate(questions, start=1):
96
  response = st.text_input(f"{i}. {question}")