Spaces:
Running
Running
Pranav0111
commited on
Commit
•
fdad934
1
Parent(s):
a160b68
Update app.py
Browse files
app.py
CHANGED
@@ -251,4 +251,17 @@ def create_journal_interface():
|
|
251 |
submit_btn.click(
|
252 |
fn=journal.analyze_entry,
|
253 |
inputs=[entry_input],
|
254 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
submit_btn.click(
|
252 |
fn=journal.analyze_entry,
|
253 |
inputs=[entry_input],
|
254 |
+
outputs=[result_message, sentiment_output, prompt_output, affirmation_output]
|
255 |
+
)
|
256 |
+
|
257 |
+
insights_btn.click(
|
258 |
+
fn=journal.get_monthly_insights,
|
259 |
+
inputs=[],
|
260 |
+
outputs=[insights_output]
|
261 |
+
)
|
262 |
+
|
263 |
+
return interface
|
264 |
+
|
265 |
+
if __name__ == "__main__":
|
266 |
+
interface = create_journal_interface()
|
267 |
+
interface.launch()
|