Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -301,7 +301,7 @@ def text_classification_and_sentiment(text, keywords_df):
|
|
| 301 |
sentiment_output = f"Sentiment: {sentiment_label}\nProbability: {sentiment_score * 100:.2f}%"
|
| 302 |
decision_output = f"Decision: {decision}"
|
| 303 |
|
| 304 |
-
hf_writer.flag([text,
|
| 305 |
|
| 306 |
|
| 307 |
return tpb_output, sentiment_output, decision_output
|
|
|
|
| 301 |
sentiment_output = f"Sentiment: {sentiment_label}\nProbability: {sentiment_score * 100:.2f}%"
|
| 302 |
decision_output = f"Decision: {decision}"
|
| 303 |
|
| 304 |
+
hf_writer.flag([text,tpb_label, sentiment_label])
|
| 305 |
|
| 306 |
|
| 307 |
return tpb_output, sentiment_output, decision_output
|