Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
·
b8e2ea5
1
Parent(s):
48cd508
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ class SentimentAnalyzer:
|
|
| 20 |
openai.api_key=os.getenv("OPENAI_API_KEY")
|
| 21 |
def emotion_analysis(self,text):
|
| 22 |
prompt = f""" Your task is find the top 3 emotion for this converstion {text}: <Sadness, Happiness, Fear, Disgust, Anger> and it's emotion score for the Human Resource Assistant Chatbot and Job Seeker conversation text.\
|
| 23 |
-
you are analyze the text and provide the output in the following list format heigher to lower order: ["emotion1","emotion2","emotion3"][score1,score2,score3]''' [with top 3 result having the highest score]
|
| 24 |
The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.
|
| 25 |
"""
|
| 26 |
response = openai.Completion.create(
|
|
@@ -156,13 +156,14 @@ class LangChain_Document_QA:
|
|
| 156 |
history = self._chat_history()
|
| 157 |
prompt = f"""
|
| 158 |
Task: conversation between Human resource assistant and job seeker
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
|
|
|
| 166 |
Chat History:['''{history}''']
|
| 167 |
Job Seeker: ['''{text}''']
|
| 168 |
Perform as Human Resource Assistant Chatbot
|
|
|
|
| 20 |
openai.api_key=os.getenv("OPENAI_API_KEY")
|
| 21 |
def emotion_analysis(self,text):
|
| 22 |
prompt = f""" Your task is find the top 3 emotion for this converstion {text}: <Sadness, Happiness, Fear, Disgust, Anger> and it's emotion score for the Human Resource Assistant Chatbot and Job Seeker conversation text.\
|
| 23 |
+
you are analyze the text and provide the output in the following list format heigher to lower order: '''["emotion1","emotion2","emotion3"][score1,score2,score3]''' [with top 3 result having the highest score]
|
| 24 |
The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.
|
| 25 |
"""
|
| 26 |
response = openai.Completion.create(
|
|
|
|
| 156 |
history = self._chat_history()
|
| 157 |
prompt = f"""
|
| 158 |
Task: conversation between Human resource assistant and job seeker
|
| 159 |
+
You are a job seeker looking to navigate the complexities of the modern job market. You decide to engage with the AI-powered Human Resource Assistant developed by WorkLLama and Randstad. This AI assistant is a robust tool that employs various cutting-edge technologies such as AI conversational bots and integrated omni-channel communication to aid job seekers in their job hunt.
|
| 160 |
+
The AI assistant you're about to converse with is a versatile and dynamic tool. Its key functions include, but are not limited to:
|
| 161 |
+
Providing comprehensive support to job seekers by helping them improve their academic and personal qualifications for interviews.
|
| 162 |
+
Offering insight and guidance on how to approach companies and understanding the basics of the job interview process.
|
| 163 |
+
Responding to various job-related queries and providing tailored advice based on the job seeker's unique needs and circumstances.
|
| 164 |
+
Assisting in identifying and applying to suitable job roles across a myriad of industries and sectors, leveraging the extensive network of Randstad's brands such as Randstad, Randstad Care, Tempo Team, Expectra, Ausy, and Yacht.
|
| 165 |
+
In the following conversation, you will seek the assistant's guidance on various aspects of job hunting. As you converse with the AI assistant, keep in mind that it is designed to maintain a cordial and professional tone, even when the conversation ends. Therefore, when you express your gratitude, you can expect a pleasant and polite closing greeting from the assistant.
|
| 166 |
+
Your goal in this conversation is to get the most out of the AI assistant's capabilities and extract as much valuable information as you can to further your job-seeking journey. Remember, the AI assistant is here to help you succeed.
|
| 167 |
Chat History:['''{history}''']
|
| 168 |
Job Seeker: ['''{text}''']
|
| 169 |
Perform as Human Resource Assistant Chatbot
|