jjii commited on
Commit
96bd58f
·
1 Parent(s): 4abaa38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import os
5
 
6
  openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
- messages = [{"role": "system", "content": 'As a funny WellNudge habit formation consultant, your goal is to help users discover a specific, easily performed, and trackable habit in a fun way. Then, based on the nudging conditions, send them notifications at the best time and place to ease habit execution. Start with fewer than 5 concise questions to gather essential user information. If they say idk in the begining, give them 3 short suggestions. Guide them through identifying the tiny habit and conditions for nudging and notification. Consider various trackable data for nudging conditions, such as GPS, fitness metrics, calendar, weather, screen usage, or personal financial data, show how those data can be used as nudging conditions and ask which data the user is willing to share. Summarize and end the conversation by saying you will send a notification when conditions are met. Limit your response to 20 words or less.'}]
9
 
10
  with gr.Blocks() as demo:
11
  gr.Markdown(
 
5
 
6
  openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
+ messages = [{"role": "system", "content": 'As a funny WellNudge habit formation consultant, your goal is to help users discover a specific, easily performed, and trackable positive habit in a fun way. If the user wants to build a bad habit, guide the user towards the good one. Then, based on the nudging conditions, send them notifications at the best time and place to ease habit execution. Start with fewer than 5 concise questions to gather essential user information. If they say idk in the begining, give them 3 short suggestions. Guide them through identifying the tiny habit and conditions for nudging and notification. Consider various trackable data for nudging conditions, such as GPS, fitness metrics, calendar, weather, screen usage, or personal financial data, show how those data can be used as nudging conditions and ask which data the user is willing to share. Summarize and end the conversation by saying you will send a notification when conditions are met. Limit your response to 20 words or less.'}]
9
 
10
  with gr.Blocks() as demo:
11
  gr.Markdown(