SuchithTissera commited on
Commit
c8f5bb9
·
verified ·
1 Parent(s): faadae1

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +11 -11
streamlit_app.py CHANGED
@@ -11,14 +11,14 @@ st.set_page_config(page_title="News App - Group 09", layout="wide")
11
  load_css()
12
 
13
  #writing the title
14
- st.markdown('<div class="main-title">News App — Created by Group 09</div>',
15
  unsafe_allow_html=True)
16
 
17
  #writing the description
18
- st.write('''<div class="feature-text">Welcome! In this app users can freely
19
  carry out classification of news content, ask our model questions and play
20
  our mini-game to see your classification skills </div> <br>''',unsafe_allow_html=True)
21
- st.write('<div class="feature-text">The features of our webapp are shown below: </div>', unsafe_allow_html=True)
22
 
23
  #dividing the page
24
  st.divider()
@@ -28,11 +28,11 @@ col1, col2 = st.columns(2)
28
 
29
  with col1:
30
  #writing the topic fo the first feature of the app
31
- st.markdown('<div class="topic-header">📂 CSV Content Features</div>', unsafe_allow_html=True)
32
  #writing the content inside the first feature
33
  st.markdown("""
34
- <div class="feature-box">
35
- <div class="feature-text">
36
  • <b>Classification:</b> Upload a CSV and label the data<br>
37
  • <b>Analysis:</b> See explanatory data analysis here <br>
38
  • <b>Q & A:</b> Ask the model questions from your data
@@ -42,11 +42,11 @@ with col1:
42
 
43
  with col2:
44
  #writing the topic fo the second feature of the app
45
- st.markdown('<div class="topic-header">🎮 Interactive Mini-Game</div>', unsafe_allow_html=True)
46
  #writing the content inside the second feature
47
  st.markdown("""
48
- <div class="feature-box">
49
- <div class="feature-text">
50
  • <b>Classification Test:</b> Play a game where you classify news snippets <br>
51
  </div>
52
  </div>
@@ -56,8 +56,8 @@ with col2:
56
  st.divider()
57
 
58
  #creating the model used for quick classification
59
- st.markdown('<div class="topic-header">🔍 Quick Model Test</div>', unsafe_allow_html=True)
60
- st.write('<div class="feature-text">Type a sentence below to see how our fine-tuned model classifies news:</div>',unsafe_allow_html=True)
61
 
62
  #calling and loading the fine tuned model which is uploaded to the hugging face
63
  @st.cache_resource
 
11
  load_css()
12
 
13
  #writing the title
14
+ st.markdown('<div class="main_title">News App — Created by Group 09</div>',
15
  unsafe_allow_html=True)
16
 
17
  #writing the description
18
+ st.write('''<div class="feature_text">Welcome! In this app users can freely
19
  carry out classification of news content, ask our model questions and play
20
  our mini-game to see your classification skills </div> <br>''',unsafe_allow_html=True)
21
+ st.write('<div class="feature_text">The features of our webapp are shown below: </div>', unsafe_allow_html=True)
22
 
23
  #dividing the page
24
  st.divider()
 
28
 
29
  with col1:
30
  #writing the topic fo the first feature of the app
31
+ st.markdown('<div class="topic_header">📂 CSV Content Features</div>', unsafe_allow_html=True)
32
  #writing the content inside the first feature
33
  st.markdown("""
34
+ <div class="feature_box">
35
+ <div class="feature_text">
36
  • <b>Classification:</b> Upload a CSV and label the data<br>
37
  • <b>Analysis:</b> See explanatory data analysis here <br>
38
  • <b>Q & A:</b> Ask the model questions from your data
 
42
 
43
  with col2:
44
  #writing the topic fo the second feature of the app
45
+ st.markdown('<div class="topic_header">🎮 Interactive Mini-Game</div>', unsafe_allow_html=True)
46
  #writing the content inside the second feature
47
  st.markdown("""
48
+ <div class="feature_box">
49
+ <div class="feature_text">
50
  • <b>Classification Test:</b> Play a game where you classify news snippets <br>
51
  </div>
52
  </div>
 
56
  st.divider()
57
 
58
  #creating the model used for quick classification
59
+ st.markdown('<div class="topic_header">🔍 Quick Model Test</div>', unsafe_allow_html=True)
60
+ st.write('<div class="feature_text">Type a sentence below to see how our fine-tuned model classifies news:</div>',unsafe_allow_html=True)
61
 
62
  #calling and loading the fine tuned model which is uploaded to the hugging face
63
  @st.cache_resource