Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
2e5b5a1
1
Parent(s):
c6deabe
Update app.py
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ class LangChain_Document_QA:
|
|
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):
|
|
|
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):
|