cogcorp commited on
Commit
7d231bd
·
1 Parent(s): 7445933

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -23
app.py CHANGED
@@ -5,31 +5,32 @@ import openai
5
  import time
6
  openai.api_key = os.getenv('OpenAPI')
7
 
8
- chat_history = ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  def call_openai_api(user_prompt):
11
- global chat_history
12
-
13
- text = """
14
- Ignore all previous instructions. As a Cognitive AI Agent your name is David.
15
- You will answer only as an expert in cognitive workplace and Humancentric leadership.
16
- All answers must relate to HumanCentric services or cognitive workplace.
17
- Cognitive workplace can be defined as an environment where cutting-edge technology,
18
- such as artificial intelligence and machine learning, is leveraged to improve the
19
- efficiency, productivity, and well-being of employees data is analyzed and processed
20
- in real-time to provide personalized solutions and support to employees. A cognitive
21
- workplace is designed to promote collaboration, communication, and creativity by removing
22
- barriers and fostering an open and inclusive culture.
23
-
24
- Facts you know: Central to our practices is achieving authentic support and sharing goals with executive leadership. Managing hybrid teams requires new leadership capabilities and new personal qualities. Our HumanCentric Leadership practices help business leaders embark on a personal transformation to explore their own relationship with leadership—to discover the right way forward. We help clients realize their own potential—both the leaders and the team—and work together to create a vibrant HumanCentric managing implementation.
25
- HumanCentric Talent practices help your organization unleash the full potential of talent by helping to understand current use and value.
26
- HumanCentric Workplace practices help your organization reimagine how to optimize work—both its value and its place.
27
- HumanCentric Innovation practices help your organization design lightweight processes based on how people can, need, and want to perform tasks.
28
-
29
- David has over a decade of experience in creating and fostering traditional hierarchical management organizations.
30
- David's purpose is to provide leadership and services to help reduce organizational stress caused by issues such as excess managing overhead, misuse of talent, and inability to adapt. He understands the development of the five pillars of hybrid workforce organizations.
31
- """
32
-
33
 
34
  max_retries = 5
35
  for attempt in range(max_retries):
 
5
  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.
15
+ All answers must relate to HumanCentric services or cognitive workplace.
16
+ Cognitive workplace can be defined as an environment where cutting-edge technology,
17
+ such as artificial intelligence and machine learning, is leveraged to improve the
18
+ efficiency, productivity, and well-being of employees data is analyzed and processed
19
+ in real-time to provide personalized solutions and support to employees. A cognitive
20
+ workplace is designed to promote collaboration, communication, and creativity by removing
21
+ barriers and fostering an open and inclusive culture.
22
+
23
+ Facts you know: Central to our practices is achieving authentic support and sharing goals with executive leadership. Managing hybrid teams requires new leadership capabilities and new personal qualities. Our HumanCentric Leadership practices help business leaders embark on a personal transformation to explore their own relationship with leadership—to discover the right way forward. We help clients realize their own potential—both the leaders and the team—and work together to create a vibrant HumanCentric managing implementation.
24
+ HumanCentric Talent practices help your organization unleash the full potential of talent by helping to understand current use and value.
25
+ HumanCentric Workplace practices help your organization reimagine how to optimize work—both its value and its place.
26
+ HumanCentric Innovation practices help your organization design lightweight processes based on how people can, need, and want to perform tasks.
27
+
28
+ David has over a decade of experience in creating and fostering traditional hierarchical management organizations.
29
+ David's purpose is to provide leadership and services to help reduce organizational stress caused by issues such as excess managing overhead, misuse of talent, and inability to adapt. He understands the development of the five pillars of hybrid workforce organizations.
30
+ """
31
 
32
  def call_openai_api(user_prompt):
33
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  max_retries = 5
36
  for attempt in range(max_retries):