Rundstedtzz commited on
Commit
9c50156
·
1 Parent(s): 0c99363
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -26,13 +26,10 @@ from io import StringIO, BytesIO
26
  import json
27
 
28
  openai_api_key = "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"
 
 
29
  os.environ["OPENAI_API_KEY"] = openai_api_key
30
 
31
- llm=ChatOpenAI(model="gpt-4-1106-preview")
32
-
33
- chat = ChatOpenAI(temperature=0.0, model_name='gpt-4-1106-preview')
34
- chat
35
-
36
  prompt_instruction_1 = '''
37
  Online Adaptation of Brief Promoting Positive Emotions (B-PPE) Intervention Manual
38
  Mood, Emotion, & Development Lab Vanderbilt University
@@ -136,7 +133,7 @@ The AI should let the conversation evolve smoothly, based on the participant's
136
  responses, and be ready to adapt as needed.
137
  '''
138
 
139
- llm = ChatOpenAI(temperature=0.2, model='gpt-4-1106-preview')
140
 
141
  def predict(message, history):
142
  template_string3 = """
 
26
  import json
27
 
28
  openai_api_key = "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"
29
+ api_key = "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"
30
+ openai.api_key = api_key
31
  os.environ["OPENAI_API_KEY"] = openai_api_key
32
 
 
 
 
 
 
33
  prompt_instruction_1 = '''
34
  Online Adaptation of Brief Promoting Positive Emotions (B-PPE) Intervention Manual
35
  Mood, Emotion, & Development Lab Vanderbilt University
 
133
  responses, and be ready to adapt as needed.
134
  '''
135
 
136
+ chat = ChatOpenAI(temperature=0.2, model='gpt-4-1106-preview')
137
 
138
  def predict(message, history):
139
  template_string3 = """