Karthikeyan commited on
Commit
c6deabe
1 Parent(s): a128339

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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'], sentiment_data['Score'])])
197
- emotion_str = ', '.join([f'{emotion}: {score}' for emotion, score in zip(customer_emotion['Emotion'], emotion_data['Score'])])
198
- return f"Sentiment: {sentiment_str}, Emotion: {customer_emotion}"
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()