-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.py
177 lines (144 loc) · 7.58 KB
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
import streamlit as st
def main():
disclaimer_text = "***Disclaimer: We are not responsible for any damages caused to your academic reputation in any form of plagiarism***"
st.set_page_config(page_title="Branlit", page_icon=":brain:")
st.markdown("<h1 style='text-align: center; color: green;'>Welcome to Branlit! 🧠</h1>", unsafe_allow_html=True)
st.markdown("<h3>Why Branlit?</h3>", unsafe_allow_html=True)
st.write("""
I realized most students are trapped in a ChatGPT bubble. They use it for everything without realizing the vast AI world beyond!
ChatGPT is just one star in a galaxy of large language models. I wanted to shine a light on the endless possibilities.
So I built Branlit as an AI playground - a one-stop shop to showcase different LLM features. Consider Branlit your AI tour guide!
Here, you can go beyond surface level ChatGPT queries.
""")
st.write("""
I designed Branlit to be an interactive learning tool. You can upload files, analyze data, and explore metrics.
My goal is to nourish your inner curiosity. To give you those a-ha AI moments. To help you level up your skills.
Branlit will expand your knowledge and unlock your potential. Let your inner genius flourish!
So buckle up, get ready to geek out over AI, and let's begin the journey!
""")
st.markdown("---")
st.markdown("<h3 style='text-align: center; color: green;'>Feature #1 - PDFPal 📚</h3>", unsafe_allow_html=True)
st.write("""
:one: PDFPal allows you to upload multiple PDFs and ask questions about them. The AI will
process the PDFs and give you answers!
""")
st.write("""
For example, say a student has an assignment but doesn't fully understand the requirements.
They can upload the assignment PDF and ask questions to clarify what needs to be done.
""")
st.markdown('> "I was totally confused by my essay assignment. The prompt was vague and the requirements confusing. I uploaded the PDF to PDFPal and asked it to explain the expectations and give tips. PDFPal clarified everything for me in simple steps - now I know exactly how to ace this essay!"')
st.subheader("Here's how:")
video_file = open('./files/pdfpal.mkv', 'rb')
video_bytes = video_file.read()
st.video(video_bytes)
st.markdown(f'<font color="red">{disclaimer_text}</font>', unsafe_allow_html=True)
st.markdown("---")
# Feature 2 - BranHub
st.markdown("<h3 style='text-align: center; color: green;'>Feature #2 - BranHub</h3>", unsafe_allow_html=True)
st.write("""
:two: BranHub allows you to analyze and get insights from CSV data. Upload a CSV file and ask questions -
the AI will process the data and provide answers!
""")
st.write("""
For a data analytics student working on a project, BranHub can help reveal trends and patterns they may have missed.
They can upload their CSV dataset and ask questions to do deeper analysis.
""")
st.markdown('> "I was analyzing customer data for a class project and felt totally lost in the numbers. Then I discovered BranHub! I uploaded my CSV file and started asking questions. BranHub found insights I never would have seen on my own. It perfectly summarized retention drivers and churn predictors!"')
st.subheader("Here's how:")
video_file = open('./files/branhub.mp4', 'rb')
video_bytes = video_file.read()
st.video(video_bytes)
st.markdown(f'<font color="red">{disclaimer_text}</font>', unsafe_allow_html=True)
st.markdown("---")
# Extra Feature - COVIDTrackr
st.markdown("<h3 style='text-align: center; color: green;'>Extra Feature - COVIDTrackr</h3>", unsafe_allow_html=True)
st.write("""
:three: COVIDTrackr is an invaluable addition to Branlit, tailored to the unique needs of students. This analytics dashboard allows students to gain insights and understanding of the COVID-19 pandemic's impact on their academic journey. By visualizing COVID-19 data since 2020, students can track the effects of the pandemic on education, offering a comprehensive view of cases, deaths, and other relevant metrics.
""")
st.write("""
Given the disruptions caused by the pandemic, COVIDTrackr serves as a critical resource for students to comprehend the broader context of the challenges they have faced in their academic pursuits.
""")
st.markdown('''<p style="color:red;">*Dataset used in this dashboard is only up to 23th Aug 2023</p>''', unsafe_allow_html=True)
st.subheader("Here's how:")
video_file = open('./files/covidtrackr.mkv', 'rb')
video_bytes = video_file.read()
st.video(video_bytes)
st.markdown("---")
st.markdown("<h3 style='text-align: center; color: green;'>You're not satisfied with these?</h3>", unsafe_allow_html=True)
st.write("""
Check out my other projects that have harnessed the power of Large Language Models (LLMs).
Explore the AI world beyond Branlit!
""")
# Create a 2x2 grid layout for buttons
col1, col2 = st.columns(2) # Two columns for two rows of buttons
# Button 1
with col1:
st.image('./files/aisummarizer.png', use_column_width=True)
st.markdown(
"""
<div style='text-align: center;'>
<a href='https://brandongpt-summarizer.web.app/' class='custom-button-1' style='text-decoration: none;'>
<p class='button-text' style='font-size: 18px;'>Articles Summarizer</p>
</a>
</div>
"""
, unsafe_allow_html=True)
# Button 2
with col2:
st.image('./files/aimage.png', use_column_width=True)
st.markdown(
"""
<div style='text-align: center;'>
<a href='https://imagegeneratorai-6e92d.web.app/' class='custom-button' style='text-decoration: none;'>
<p class='button-text' style='font-size: 18px;'>AI Image Generator</p>
</a>
</div>
"""
, unsafe_allow_html=True)
# Button 3
with col1:
st.image('./files/quizbraniacbg.png', use_column_width=True)
st.markdown(
"""
<div style='text-align: center;'>
<a href='https://quizbraniac.vercel.app/' class='custom-button' style='text-decoration: none;'>
<p class='button-text' style='font-size: 18px;'>QuizBraniac</p>
</a>
</div>
"""
, unsafe_allow_html=True)
# Button 4
with col2:
st.image('./files/ai.png', use_column_width=True)
st.markdown(
"""
<div style='text-align: center;'>
<a href='https://ai-verse.vercel.app/' class='custom-button' style='text-decoration: none;'>
<p class='button-text' style='font-size: 18px;'>AI-verse Community</p>
</a>
</div>
"""
, unsafe_allow_html=True)
# Define the JavaScript code for updating the year
js_code = """
<script>
// Get the current year
const currentYear = new Date().getFullYear();
// Display the current year in the footer
document.getElementById("year").textContent = currentYear;
</script>
"""
# Add the JavaScript code to the app
st.markdown(js_code, unsafe_allow_html=True)
st.markdown("---")
# Create a footer with the copyright text
st.markdown(
"""
<div style="text-align: center;">
<p>© <span id="year">2023</span> Branlit. All Rights Reserved.</p>
</div>
""",
unsafe_allow_html=True
)
if __name__ == '__main__':
main()