Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
bda4029
1
Parent(s):
9f885d8
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ class SentimentAnalyzer:
|
|
59 |
|
60 |
def analyze_sentiment_for_graph(self, text):
|
61 |
prompt = f""" Your task is find the top 3 setiments : <labels = positive, negative, neutral> and it's sentiment score for the Mental Healthcare Doctor Chatbot and patient conversation text.\
|
62 |
-
your are analyze the text and provide the output in the following json format heigher to lower order: \"\"\"
|
63 |
analyze the text : '''{text}'''
|
64 |
"""
|
65 |
response = openai.Completion.create(
|
|
|
59 |
|
60 |
def analyze_sentiment_for_graph(self, text):
|
61 |
prompt = f""" Your task is find the top 3 setiments : <labels = positive, negative, neutral> and it's sentiment score for the Mental Healthcare Doctor Chatbot and patient conversation text.\
|
62 |
+
your are analyze the text and provide the output in the following json format heigher to lower order: \"\"\" \{"label1": score1,"label2":score2,"label3":score3\} \"\"\" \
|
63 |
analyze the text : '''{text}'''
|
64 |
"""
|
65 |
response = openai.Completion.create(
|