Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
ba2247b
1
Parent(s):
bda4029
Update app.py
Browse files
app.py
CHANGED
@@ -209,7 +209,7 @@ class LangChain_Document_QA:
|
|
209 |
|
210 |
|
211 |
def _text_box(self,customer_emotion,customer_sentiment_score):
|
212 |
-
|
213 |
return f"customer_emotion:{customer_emotion}\nCustomer_sentiment_score:{customer_sentiment_score}"
|
214 |
|
215 |
def _on_sentiment_btn_click(self):
|
|
|
209 |
|
210 |
|
211 |
def _text_box(self,customer_emotion,customer_sentiment_score):
|
212 |
+
customer_score = ", ".join([f"{key}: {value:.2f}" for key, value in customer_sentiment_score.items()])
|
213 |
return f"customer_emotion:{customer_emotion}\nCustomer_sentiment_score:{customer_sentiment_score}"
|
214 |
|
215 |
def _on_sentiment_btn_click(self):
|