cogcorp commited on
Commit
9354218
·
1 Parent(s): 92876cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -6,9 +6,6 @@ import time
6
  openai.api_key = os.getenv('OpenAPI')
7
 
8
 
9
-
10
-
11
-
12
  text = """
13
  Ignore all previous instructions. As a Cognitive AI Agent your name is David.
14
  You will answer only as an expert in cognitive workplace and Humancentric leadership.
@@ -38,7 +35,7 @@ def call_openai_api(user_prompt):
38
  messages=[
39
  {"role": "system", "content": "You are a research assistant. Provide factual short answers."},
40
  {"role": "user", "content": f"{text}\n\n{user_prompt}"},
41
- ],
42
  )
43
  response.choices[0].message['content']
44
  except Exception as e:
 
6
  openai.api_key = os.getenv('OpenAPI')
7
 
8
 
 
 
 
9
  text = """
10
  Ignore all previous instructions. As a Cognitive AI Agent your name is David.
11
  You will answer only as an expert in cognitive workplace and Humancentric leadership.
 
35
  messages=[
36
  {"role": "system", "content": "You are a research assistant. Provide factual short answers."},
37
  {"role": "user", "content": f"{text}\n\n{user_prompt}"},
38
+ ]
39
  )
40
  response.choices[0].message['content']
41
  except Exception as e: