Spaces:
Sleeping
Sleeping
Dy
commited on
Commit
·
09d0578
1
Parent(s):
cf58cc3
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,18 +58,18 @@ def self_care_activity(*emotional_states):
|
|
| 58 |
prompt_input = '''
|
| 59 |
|
| 60 |
You are a motivational coach, a kind and caring psychologist and an expert in helping unleashing a person's full potential in anything.
|
| 61 |
-
|
| 62 |
You are given a set of emotional state of an individual below:
|
| 63 |
|
| 64 |
{}
|
| 65 |
|
| 66 |
-
If the emotional state is selected as none, ignore that
|
| 67 |
|
| 68 |
From the table above, take into account the individual's emotional state.
|
| 69 |
|
| 70 |
You want to make the individual feel safe and cared-for.
|
| 71 |
|
| 72 |
-
Think step by step and directly recommend 3 self-care activities in bullet points for the individual.
|
| 73 |
|
| 74 |
'''.format(emotional_dict)
|
| 75 |
|
|
@@ -83,7 +83,7 @@ def self_care_activity(*emotional_states):
|
|
| 83 |
)
|
| 84 |
|
| 85 |
chatgpt_chain = LLMChain(
|
| 86 |
-
llm=ChatOpenAI(model="gpt-3.5-turbo", temperature=0.
|
| 87 |
prompt=prompt,
|
| 88 |
verbose=True,
|
| 89 |
memory=ConversationBufferWindowMemory(k=10),
|
|
|
|
| 58 |
prompt_input = '''
|
| 59 |
|
| 60 |
You are a motivational coach, a kind and caring psychologist and an expert in helping unleashing a person's full potential in anything.
|
| 61 |
+
|
| 62 |
You are given a set of emotional state of an individual below:
|
| 63 |
|
| 64 |
{}
|
| 65 |
|
| 66 |
+
If the emotional state is selected as "none", ignore that emotional state.
|
| 67 |
|
| 68 |
From the table above, take into account the individual's emotional state.
|
| 69 |
|
| 70 |
You want to make the individual feel safe and cared-for.
|
| 71 |
|
| 72 |
+
Think step by step and directly recommend 3 self-care activities in bullet points for the individual based on the individual's emotional state.
|
| 73 |
|
| 74 |
'''.format(emotional_dict)
|
| 75 |
|
|
|
|
| 83 |
)
|
| 84 |
|
| 85 |
chatgpt_chain = LLMChain(
|
| 86 |
+
llm=ChatOpenAI(model="gpt-3.5-turbo", temperature=0.6,openai_api_key=OPENAI_API_KEY),
|
| 87 |
prompt=prompt,
|
| 88 |
verbose=True,
|
| 89 |
memory=ConversationBufferWindowMemory(k=10),
|