Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,11 +21,11 @@ def inference(text):
|
|
21 |
clear_input_samples=True)
|
22 |
|
23 |
result = pd.DataFrame({
|
24 |
-
'aspect': result[
|
25 |
-
'sentiment': result[
|
26 |
-
'confidence': [round(c, 3) for c in result[
|
27 |
-
'ref_sentiment': ['' if ref == '-999' else ref for ref in result[
|
28 |
-
'is_correct': result[
|
29 |
})
|
30 |
|
31 |
return result
|
|
|
21 |
clear_input_samples=True)
|
22 |
|
23 |
result = pd.DataFrame({
|
24 |
+
'aspect': result['aspect'],
|
25 |
+
'sentiment': result['sentiment'],
|
26 |
+
'confidence': [round(c, 3) for c in result['confidence']],
|
27 |
+
'ref_sentiment': ['' if ref == '-999' else ref for ref in result['ref_sentiment']],
|
28 |
+
'is_correct': result['ref_check'],
|
29 |
})
|
30 |
|
31 |
return result
|