SaviAnna commited on
Commit
abb51a2
1 Parent(s): b489fac

Update pages/📷 CritiSense.py

Browse files
Files changed (1) hide show
  1. pages/📷 CritiSense.py +2 -9
pages/📷 CritiSense.py CHANGED
@@ -45,13 +45,6 @@ end_ml=time.time()
45
  st.write("Review:", user_review)
46
  ml_time=end_ml-start_ml
47
 
48
- # if prediction == 1:
49
- # st.markdown("<p style='color: green;'>Sentiment: Positive</p>", unsafe_allow_html=True)
50
- # else:
51
- # st.markdown("<p style='color: red;'>Sentiment: Negative</p>", unsafe_allow_html=True)
52
- # st.markdown(f"Execution Time: {ml_time:.4f} seconds")
53
-
54
-
55
  execution_time_container = st.empty() # Создаем пустой контейнер для отображения времени выполнения
56
 
57
  if st.button("Analyze Sentiment"):
@@ -59,6 +52,6 @@ if st.button("Analyze Sentiment"):
59
  st.markdown("<p style='color: green;'>Sentiment: Positive</p>", unsafe_allow_html=True)
60
  else:
61
  st.markdown("<p style='color: red;'>Sentiment: Negative</p>", unsafe_allow_html=True)
62
- st.markdown(f"Execution Time: {ml_time:.5f} seconds")
63
- execution_time_container.text(f"Execution Time: {ml_time:.5f} seconds")
64
 
 
45
  st.write("Review:", user_review)
46
  ml_time=end_ml-start_ml
47
 
 
 
 
 
 
 
 
48
  execution_time_container = st.empty() # Создаем пустой контейнер для отображения времени выполнения
49
 
50
  if st.button("Analyze Sentiment"):
 
52
  st.markdown("<p style='color: green;'>Sentiment: Positive</p>", unsafe_allow_html=True)
53
  else:
54
  st.markdown("<p style='color: red;'>Sentiment: Negative</p>", unsafe_allow_html=True)
55
+ st.markdown(f"Execution Time: {ml_time:.5f} seconds")
56
+ execution_time_container.text(f"Execution Time: {ml_time:.5f} seconds")
57