Karthikeyan commited on
Commit
0f31d35
1 Parent(s): 3eab8f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -177,10 +177,10 @@ class LangChain_Document_QA:
177
 
178
 
179
 
180
- def _text_box(self,customer_emotion,agent_emotion,agent_sentiment_score,customer_sentiment_score):
181
- agent_score = ", ".join([f"{key}: {value:.2f}" for key, value in agent_sentiment_score.items()])
182
  customer_score = ", ".join([f"{key}: {value:.2f}" for key, value in customer_sentiment_score.items()])
183
- return f"customer_emotion:{customer_emotion}\nagent_emotion:{agent_emotion}\nAgent_Sentiment_score:{agent_score}\nCustomer_sentiment_score:{customer_score}"
184
 
185
  def _on_sentiment_btn_click(self):
186
  client,agent=self._history_of_chat()
 
177
 
178
 
179
 
180
+ def _text_box(self,customer_emotion,customer_sentiment_score):
181
+ #agent_score = ", ".join([f"{key}: {value:.2f}" for key, value in agent_sentiment_score.items()])
182
  customer_score = ", ".join([f"{key}: {value:.2f}" for key, value in customer_sentiment_score.items()])
183
+ return f"customer_emotion:{customer_emotion}\nCustomer_sentiment_score:{customer_score}"
184
 
185
  def _on_sentiment_btn_click(self):
186
  client,agent=self._history_of_chat()