Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import openai
|
|
3 |
|
4 |
# Constants
|
5 |
AI_MODEL = "gpt-4o"
|
6 |
-
TOKEN_COUNT =
|
7 |
MAX_USES = 3
|
8 |
|
9 |
# Set the page title and favicon
|
@@ -32,7 +32,7 @@ def generate_reminder(language, feeling, reason, plan):
|
|
32 |
- Feeling: {feeling}.
|
33 |
- Reason for the feeling: {reason}.
|
34 |
- Plan for the day: {plan}.
|
35 |
-
- Explain within 100 words in English, or
|
36 |
"""
|
37 |
with st.spinner('Generating your daily reminder...'):
|
38 |
response = openai.ChatCompletion.create(
|
|
|
3 |
|
4 |
# Constants
|
5 |
AI_MODEL = "gpt-4o"
|
6 |
+
TOKEN_COUNT = 2000
|
7 |
MAX_USES = 3
|
8 |
|
9 |
# Set the page title and favicon
|
|
|
32 |
- Feeling: {feeling}.
|
33 |
- Reason for the feeling: {reason}.
|
34 |
- Plan for the day: {plan}.
|
35 |
+
- Explain within 100 words in English, or 200 charactors in Japanese.
|
36 |
"""
|
37 |
with st.spinner('Generating your daily reminder...'):
|
38 |
response = openai.ChatCompletion.create(
|