Skip to content

Commit 7e87ed3

Browse files
authored
Merge pull request #251 from shubhagarwal1/faq
Added FAQ Page
2 parents 7829f1e + e15d868 commit 7e87ed3

File tree

1 file changed

+133
-0
lines changed

1 file changed

+133
-0
lines changed

Web_app/pages/FAQ.py

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
import streamlit as st
2+
3+
st.title("🎥 FAQ - Frequently Asked Questions?")
4+
st.markdown(
5+
"<div style='height: 5px; background: linear-gradient(to right, #FF5733, #FFC300, #DAF7A6, #33FF57, #3380FF);'></div>",
6+
unsafe_allow_html=True,
7+
)
8+
9+
# Custom CSS for styling
10+
st.markdown(
11+
"""
12+
<style>
13+
body {
14+
color: #333;
15+
font-family: 'Arial', sans-serif;
16+
}
17+
.important {
18+
color: #FF5733;
19+
font-weight: bold;
20+
}
21+
.highlight {
22+
background-color: #FFFFA8;
23+
padding: 0.2em;
24+
border-radius: 5px;
25+
}
26+
.faq-title {
27+
color: #FFFFFF;
28+
font-size: 24px;
29+
margin-bottom: 10px;
30+
}
31+
.faq-subtitle {
32+
color: #333;
33+
font-size: 20px;
34+
margin-top: 20px;
35+
font-weight: bold;
36+
}
37+
.code-text {
38+
font-family: 'Courier New', monospace;
39+
background-color: #f0f0f0;
40+
padding: 2px 4px;
41+
border-radius: 3px;
42+
}
43+
.red-text {
44+
color: #FF0000;
45+
}
46+
.emoji-bullet {
47+
font-size: 18px;
48+
margin-right: 8px;
49+
}
50+
.underline-once {
51+
text-decoration: underline;
52+
text-decoration-color: #FFD700;
53+
text-decoration-thickness: 3px;
54+
}
55+
</style>
56+
""",
57+
unsafe_allow_html=True,
58+
)
59+
60+
# General Questions
61+
st.subheader("🧐 General Questions")
62+
63+
# Question 1
64+
st.markdown(
65+
'<div class="faq-title">1. 🤔 What is the IMDb Movie Review Analysis and Recommendation System?</div>',
66+
unsafe_allow_html=True,
67+
)
68+
st.write(
69+
"This system analyzes movie reviews and provides personalized movie recommendations using "
70+
"Natural Language Processing (NLP) and machine learning algorithms."
71+
)
72+
73+
# Question 2
74+
st.markdown(
75+
'<div class="faq-title">2. 😃😠 How does the sentiment analysis work?</div>',
76+
unsafe_allow_html=True,
77+
)
78+
st.write(
79+
"The sentiment analysis utilizes a Support Vector Machine (SVM) model to classify movie reviews as "
80+
"<span class='important'>positive</span> or <span class='important'>negative</span>. "
81+
"This helps in understanding audience sentiment towards different movies."
82+
)
83+
84+
# Question 3
85+
st.markdown(
86+
'<div class="faq-title">3. 📤 How can I upload my movie reviews?</div>',
87+
unsafe_allow_html=True,
88+
)
89+
st.write(
90+
"You can upload a CSV file containing movie reviews through the sidebar. "
91+
"<span class='red-text'>Ensure your file includes a 'review' or 'user_review' column for proper analysis.</span>"
92+
)
93+
94+
# Question 4
95+
st.markdown(
96+
'<div class="faq-title">4. 📁 What formats are supported for the uploaded CSV file?</div>',
97+
unsafe_allow_html=True,
98+
)
99+
st.write("The supported formats for the uploaded CSV file are:")
100+
st.markdown(
101+
"""
102+
<span class='emoji-bullet'>📌</span> UTF-8 encoding
103+
<span class='emoji-bullet'>📌</span> Latin1 encoding
104+
""",
105+
unsafe_allow_html=True,
106+
)
107+
st.write("Make sure your file is in one of these formats to avoid encoding errors.")
108+
109+
# Question 5
110+
st.markdown(
111+
'<div class="faq-title">5. 🔍 How are recommendations generated?</div>',
112+
unsafe_allow_html=True,
113+
)
114+
st.write(
115+
"Recommendations are generated using a combination of user ratings and review sentiment analysis, "
116+
"which helps identify similar movies based on user preferences."
117+
)
118+
119+
# Question 6
120+
st.markdown(
121+
'<div class="faq-title">6. 🔄 Can I get recommendations for TV shows as well?</div>',
122+
unsafe_allow_html=True,
123+
)
124+
st.write(
125+
"Yes! The system can also provide recommendations for TV shows based on your viewing history and preferences."
126+
)
127+
128+
# Add a footer or additional info section
129+
st.markdown("---")
130+
st.markdown(
131+
"<small>For any further assistance, feel free to contact our support team at [email protected]</small>",
132+
unsafe_allow_html=True,
133+
)

0 commit comments

Comments
 (0)