Spaces:
Sleeping
Sleeping
Pranav0111
commited on
Commit
•
2573724
1
Parent(s):
0da85b2
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ class JournalCompanion:
|
|
121 |
]
|
122 |
}
|
123 |
|
124 |
-
|
125 |
if not entry_text.strip():
|
126 |
return {
|
127 |
"message": "Please write something in your journal entry.",
|
@@ -165,7 +165,6 @@ class JournalCompanion:
|
|
165 |
"affirmation": affirmation
|
166 |
}
|
167 |
|
168 |
-
|
169 |
def get_monthly_insights(self):
|
170 |
if not self.entries:
|
171 |
return "No entries yet to analyze."
|
|
|
121 |
]
|
122 |
}
|
123 |
|
124 |
+
def analyze_entry(self, entry_text):
|
125 |
if not entry_text.strip():
|
126 |
return {
|
127 |
"message": "Please write something in your journal entry.",
|
|
|
165 |
"affirmation": affirmation
|
166 |
}
|
167 |
|
|
|
168 |
def get_monthly_insights(self):
|
169 |
if not self.entries:
|
170 |
return "No entries yet to analyze."
|