Skip to content

Commit 783d567

Browse files
Update app.py
1 parent bbbd93d commit 783d567

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

app.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@
99

1010
)
1111

12-
def display_homepage():
12+
13+
def main():
14+
# Set the page title and favicon
15+
1316
st.markdown("<h1 style='text-align: center; color: white; font-size: 36px;'>Welcome to DarkGPT! 🧨</h1>", unsafe_allow_html=True)
1417
st.markdown("<h3 style='text-align: center; font-size: 56px;'>🤖</h3>", unsafe_allow_html=True)
1518
st.markdown("<h3 style='text-align: center; color: grey; font-size: 20px;'>DarkGPT: Your AI text assistant for quick summarization and analysis. Summarize text, analyze complexity, and get insights instantly!</h3>", unsafe_allow_html=True)
1619

20+
st.write('Choose an option below to get started!')
21+
22+
if st.button("DarkGPT"):
23+
st.switch_page(page='pages/DarkGPT.py')
24+
elif st.button("Summarize"):
25+
st.switch_page(page='pages/Summarize.py')
1726
st.markdown('---')
1827

1928
st.markdown("<h3 style='text-align: left; color:#F63366; font-size: 24px;'><b>What is DarkGPT?</b></h3>", unsafe_allow_html=True)
@@ -68,4 +77,4 @@ def display_homepage():
6877
st.markdown(footer, unsafe_allow_html=True)
6978

7079
if __name__ == "__main__":
71-
display_homepage()
80+
main()

0 commit comments

Comments
 (0)