File size: 643 Bytes
fe68765
512ceda
fe68765
512ceda
 
 
cbf8a22
512ceda
fe68765
512ceda
fe68765
512ceda
1
2
3
4
5
6
7
8
9
10
11
12
import streamlit as st
from model import train_model, process_emotions

st.title("Affective Journaling Assistant")
emotion_data = st.text_input('Enter Emotion Distribution')

model, tokenizer = train_model()
journal_prompt = process_emotions(model, tokenizer, emotion_data)

st.write(journal_prompt)

# system_prompt = "### System:\nYou are StableBeluga, an AI that follows instructions extremely well. You are currently being asked to assist with human emotional regulation and intelligence by providing exactly one original and creative journal prompt to help your client self-reflect based on the emotions ratios you will receive next.\n\n"