Commit
·
0652585
1
Parent(s):
adece70
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,8 @@ if sentence:
|
|
| 73 |
st.write("Predicted Aspects:")
|
| 74 |
table_data = [["Aspect", "Probability"]]
|
| 75 |
for aspect, percentage in results.items():
|
| 76 |
-
|
|
|
|
| 77 |
st.table(table_data)
|
| 78 |
else:
|
| 79 |
st.write("No aspects above the threshold.")
|
|
|
|
| 73 |
st.write("Predicted Aspects:")
|
| 74 |
table_data = [["Aspect", "Probability"]]
|
| 75 |
for aspect, percentage in results.items():
|
| 76 |
+
aspect_parts = aspect.split("-")
|
| 77 |
+
table_data.append(aspect_parts + [f"{percentage}%"])
|
| 78 |
st.table(table_data)
|
| 79 |
else:
|
| 80 |
st.write("No aspects above the threshold.")
|