Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ if input_text:
|
|
50 |
st.subheader("Risultati delle previsioni con Bert:")
|
51 |
for pred in predictions:
|
52 |
st.write(f"**Parola**: {pred['token_str']}, **Probabilità**: {pred['score']:.4f}, **Sequence**: {pred['sequence']}")
|
53 |
-
|
54 |
#predictions_roberta = fill_mask_roberta(input_text_roberta)
|
55 |
#st.subheader("Risultati delle previsioni con Roberta Base Latin Cased 3:")
|
56 |
#for pred_roberta in predictions_roberta:
|
|
|
50 |
st.subheader("Risultati delle previsioni con Bert:")
|
51 |
for pred in predictions:
|
52 |
st.write(f"**Parola**: {pred['token_str']}, **Probabilità**: {pred['score']:.4f}, **Sequence**: {pred['sequence']}")
|
53 |
+
input_text_roberta = input_text.replace("[MASK]", "<mask>")
|
54 |
#predictions_roberta = fill_mask_roberta(input_text_roberta)
|
55 |
#st.subheader("Risultati delle previsioni con Roberta Base Latin Cased 3:")
|
56 |
#for pred_roberta in predictions_roberta:
|