Spaces:
Runtime error
Runtime error
Commit
•
def21a2
1
Parent(s):
875bee5
Boldify Filled Sentence
Browse files- apps/mlm.py +1 -1
apps/mlm.py
CHANGED
@@ -132,7 +132,7 @@ def app(state):
|
|
132 |
scores = softmax(scores)
|
133 |
labels, values = get_top_5_predictions(scores)
|
134 |
filled_sentence = mlm_state.caption.replace("[MASK]", labels[0])
|
135 |
-
st.write("Filled Sentence
|
136 |
st.write( f"""**English Translation**: {translate(filled_sentence, 'en')}""")
|
137 |
# newer_col1, newer_col2 = st.beta_columns([6,4])
|
138 |
fig = plotly_express_horizontal_bar_plot(values, labels)
|
|
|
132 |
scores = softmax(scores)
|
133 |
labels, values = get_top_5_predictions(scores)
|
134 |
filled_sentence = mlm_state.caption.replace("[MASK]", labels[0])
|
135 |
+
st.write("**Filled Sentence**: " + filled_sentence)
|
136 |
st.write( f"""**English Translation**: {translate(filled_sentence, 'en')}""")
|
137 |
# newer_col1, newer_col2 = st.beta_columns([6,4])
|
138 |
fig = plotly_express_horizontal_bar_plot(values, labels)
|