Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -70,12 +70,12 @@ if input_text:
|
|
70 |
input_text_roberta = input_text.replace("[MASK]", "<mask>")
|
71 |
predictions_roberta = fill_mask_roberta(input_text_roberta)
|
72 |
|
73 |
-
st.subheader("Risultati delle previsioni
|
74 |
for pred in predictions_roberta:
|
75 |
st.write(
|
76 |
-
f"Token: {pred['token_str']}
|
77 |
-
f"Probabilità: {pred['score']:.4f}
|
78 |
-
f"Sequence: {pred['sequence']}
|
79 |
)
|
80 |
st.write("---")
|
81 |
|
|
|
70 |
input_text_roberta = input_text.replace("[MASK]", "<mask>")
|
71 |
predictions_roberta = fill_mask_roberta(input_text_roberta)
|
72 |
|
73 |
+
st.subheader("Risultati delle previsioni:")
|
74 |
for pred in predictions_roberta:
|
75 |
st.write(
|
76 |
+
f" Token: {pred['token_str']}\n"
|
77 |
+
f" Probabilità: {pred['score']:.4f}\n"
|
78 |
+
f" Sequence: {pred['sequence']}\n"
|
79 |
)
|
80 |
st.write("---")
|
81 |
|