Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
0f31d35
1
Parent(s):
3eab8f1
Update app.py
Browse files
app.py
CHANGED
@@ -177,10 +177,10 @@ class LangChain_Document_QA:
|
|
177 |
|
178 |
|
179 |
|
180 |
-
def _text_box(self,customer_emotion,
|
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}\
|
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()
|