Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,13 +29,14 @@ def generate_sentiment_score(input_text, parameters):
|
|
| 29 |
2. Consider phrases, word choices, or patterns of speech that convey positive or negative sentiment for each parameter.
|
| 30 |
3. Based on your analysis, provide a sentiment score on a scale of 1-5 for each parameter, with 1 being extremely negative and 5 being extremely positive.
|
| 31 |
Provide your scores in the format: Parameter: (Score).
|
|
|
|
| 32 |
|
| 33 |
Here's the transcript:
|
| 34 |
{input_text}
|
| 35 |
'''
|
| 36 |
|
| 37 |
response = client.chat.completions.create(
|
| 38 |
-
model="
|
| 39 |
messages=[
|
| 40 |
{"role": "system", "content": "You are an AI assistant that analyzes interview transcripts and provides sentiment scores."},
|
| 41 |
{"role": "user", "content": prompt}
|
|
@@ -58,7 +59,7 @@ def generate_detailed_feedback(input_text, parameters):
|
|
| 58 |
'''
|
| 59 |
|
| 60 |
response = client.chat.completions.create(
|
| 61 |
-
model="
|
| 62 |
messages=[
|
| 63 |
{"role": "system", "content": "You are an AI assistant that provides detailed feedback on interview transcripts."},
|
| 64 |
{"role": "user", "content": prompt}
|
|
|
|
| 29 |
2. Consider phrases, word choices, or patterns of speech that convey positive or negative sentiment for each parameter.
|
| 30 |
3. Based on your analysis, provide a sentiment score on a scale of 1-5 for each parameter, with 1 being extremely negative and 5 being extremely positive.
|
| 31 |
Provide your scores in the format: Parameter: (Score).
|
| 32 |
+
4. The output should be like a professional interview reviewer(HR)
|
| 33 |
|
| 34 |
Here's the transcript:
|
| 35 |
{input_text}
|
| 36 |
'''
|
| 37 |
|
| 38 |
response = client.chat.completions.create(
|
| 39 |
+
model="microsoft/WizardLM-2-8x22B",
|
| 40 |
messages=[
|
| 41 |
{"role": "system", "content": "You are an AI assistant that analyzes interview transcripts and provides sentiment scores."},
|
| 42 |
{"role": "user", "content": prompt}
|
|
|
|
| 59 |
'''
|
| 60 |
|
| 61 |
response = client.chat.completions.create(
|
| 62 |
+
model="microsoft/WizardLM-2-8x22B",
|
| 63 |
messages=[
|
| 64 |
{"role": "system", "content": "You are an AI assistant that provides detailed feedback on interview transcripts."},
|
| 65 |
{"role": "user", "content": prompt}
|