Spaces:
Sleeping
Sleeping
Commit
·
c3bf9cc
1
Parent(s):
2827c4d
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,10 @@ def page_reviews_classification():
|
|
121 |
st.write(f"Прогнозируемый класс (BERT): {predictions.item() + 1}")
|
122 |
st.write(f"Время вычисления: {elapsed_time:.2f} сек.")
|
123 |
|
|
|
124 |
def page_toxicity_analysis():
|
|
|
|
|
125 |
user_input_toxicity = st.text_area("Введите текст для оценки токсичности:")
|
126 |
if st.button("Оценить токсичность"):
|
127 |
start_time = time.time()
|
|
|
121 |
st.write(f"Прогнозируемый класс (BERT): {predictions.item() + 1}")
|
122 |
st.write(f"Время вычисления: {elapsed_time:.2f} сек.")
|
123 |
|
124 |
+
|
125 |
def page_toxicity_analysis():
|
126 |
+
st.title("Оценка текста на токсичность")
|
127 |
+
st.image("scale_1200.webp", caption="ноиз мсу", use_column_width=True)
|
128 |
user_input_toxicity = st.text_area("Введите текст для оценки токсичности:")
|
129 |
if st.button("Оценить токсичность"):
|
130 |
start_time = time.time()
|