Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
c6deabe
1
Parent(s):
a128339
Update app.py
Browse files
app.py
CHANGED
@@ -193,9 +193,9 @@ class LangChain_Document_QA:
|
|
193 |
|
194 |
|
195 |
def _text_box(self,customer_emotion,customer_sentiment_score):
|
196 |
-
sentiment_str = ', '.join([f'{label}: {score}' for label, score in zip(customer_sentiment_score['Sentiment'],
|
197 |
-
emotion_str = ', '.join([f'{emotion}: {score}' for emotion, score in zip(customer_emotion['Emotion'],
|
198 |
-
return f"Sentiment: {sentiment_str}
|
199 |
|
200 |
def _on_sentiment_btn_click(self):
|
201 |
client=self._history_of_chat()
|
|
|
193 |
|
194 |
|
195 |
def _text_box(self,customer_emotion,customer_sentiment_score):
|
196 |
+
sentiment_str = ', '.join([f'{label}: {score}' for label, score in zip(customer_sentiment_score['Sentiment'], customer_sentiment_score['Score'])])
|
197 |
+
emotion_str = ', '.join([f'{emotion}: {score}' for emotion, score in zip(customer_emotion['Emotion'], customer_emotion['Score'])])
|
198 |
+
return f"Sentiment: {sentiment_str},\nEmotion: {customer_emotion}"
|
199 |
|
200 |
def _on_sentiment_btn_click(self):
|
201 |
client=self._history_of_chat()
|