osheina commited on
Commit
523e887
1 Parent(s): fc0e9f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -11,12 +11,23 @@ from bert_strim import bert_model_page
11
 
12
 
13
  def app_description_page():
14
- st.markdown("<h1 style='text-align: center;'>Welcome to My App!</h1>", unsafe_allow_html=True)
15
  st.markdown("<h3 style='font-size: 18px;'>This is a Streamlit application where you can explore four different models.</h3>", unsafe_allow_html=True)
16
  st.markdown("<h3 style='font-size: 18px;'>About the project:</h3>", unsafe_allow_html=True)
17
  st.markdown("<h3 style='font-size: 18px;'>The task is to train 3 different models on a dataset that contains reviews about the clinic.</h3>", unsafe_allow_html=True)
18
  st.markdown("<h3 style='font-size: 18px;'>You can write text and the model will classify it as “Negative” or “Positive”</h3>", unsafe_allow_html=True)
19
-
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  def model_selection_page():
22
  st.sidebar.title("Model Selection")
 
11
 
12
 
13
  def app_description_page():
14
+ st.title("Welcome to My App!")
15
  st.markdown("<h3 style='font-size: 18px;'>This is a Streamlit application where you can explore four different models.</h3>", unsafe_allow_html=True)
16
  st.markdown("<h3 style='font-size: 18px;'>About the project:</h3>", unsafe_allow_html=True)
17
  st.markdown("<h3 style='font-size: 18px;'>The task is to train 3 different models on a dataset that contains reviews about the clinic.</h3>", unsafe_allow_html=True)
18
  st.markdown("<h3 style='font-size: 18px;'>You can write text and the model will classify it as “Negative” or “Positive”</h3>", unsafe_allow_html=True)
19
+ data = {
20
+ "Model": ["CatBoostClassifier", "LSTM", "Rubert-tiny2", "Rubert-tiny-toxicity"],
21
+ "F1 metric": [0.87, 0.94, 0.90, 0.84]
22
+ }
23
+ df = pd.DataFrame(data)
24
+ st.markdown("<h3 style='font-size: 18px;'>Models:</h3>", unsafe_allow_html=True)
25
+ st.markdown("<h3 style='font-size: 18px;'>1. CatBoostClassifier trained on TF-IDF </h3>", unsafe_allow_html=True)
26
+ st.markdown("<h3 style='font-size: 18px;'>2. LSTM with BahdanauAttention </h3>", unsafe_allow_html=True)
27
+ st.markdown("<h3 style='font-size: 18px;'>3. Rubert-tiny2 </h3>", unsafe_allow_html=True)
28
+ st.markdown("<h3 style='font-size: 18px;'>4. Rubert-tiny-toxicity </h3>", unsafe_allow_html=True)
29
+ st.dataframe(df)
30
+ st.image('20182704132259.jpg', use_column_width=True)
31
 
32
  def model_selection_page():
33
  st.sidebar.title("Model Selection")