Update app.py
Browse files
app.py
CHANGED
|
@@ -55,8 +55,9 @@ st.write("""<p style='text-align: center; font-size: 24px;'>Это прилож
|
|
| 55 |
И даже не придётся платить 300 bucks.</p>""", unsafe_allow_html=True)
|
| 56 |
|
| 57 |
def highlight_obscene_words(text):
|
| 58 |
-
label,
|
| 59 |
st.write(f"{label}")
|
|
|
|
| 60 |
if label=='__label__positive':
|
| 61 |
return (text + " ", "приемлемо", "#47916B")
|
| 62 |
else:
|
|
|
|
| 55 |
И даже не придётся платить 300 bucks.</p>""", unsafe_allow_html=True)
|
| 56 |
|
| 57 |
def highlight_obscene_words(text):
|
| 58 |
+
label,probs=model.predict(text)
|
| 59 |
st.write(f"{label}")
|
| 60 |
+
st.write(f"{probs}")
|
| 61 |
if label=='__label__positive':
|
| 62 |
return (text + " ", "приемлемо", "#47916B")
|
| 63 |
else:
|