trohith89 commited on
Commit
7b78afc
·
verified ·
1 Parent(s): db6ba1d

Update home.py

Browse files
Files changed (1) hide show
  1. home.py +9 -18
home.py CHANGED
@@ -1,22 +1,13 @@
1
  import streamlit as st
2
 
3
- # Set page layout to wide for the homepage
4
- st.set_page_config(page_title="Home", layout="wide")
5
 
6
- # Homepage Title
7
- st.title("Welcome to the Gradient Descent Playground")
 
8
 
9
- # Introductory message
10
- st.markdown("""
11
- Welcome to the **Gradient Descent Interactive Tool**!
12
-
13
- This tool helps you visualize how the gradient descent algorithm works to find the local minimum of a function.
14
-
15
- Ready to start experimenting? Click the button below to begin!
16
- """)
17
-
18
- # Button to navigate to the Playground (app.py)
19
- if st.button("🚀 Playground"):
20
- # Navigating to the gradient descent tool page (app.py)
21
- st.experimental_set_query_params(page="gradient-descent")
22
- st.experimental_rerun()
 
1
  import streamlit as st
2
 
3
+ # Page configuration
4
+ st.set_page_config(page_title="Home", layout="centered")
5
 
6
+ # Title and description
7
+ st.title("Welcome to the Gradient Descent App!")
8
+ st.write("Click the button below to explore the playground.")
9
 
10
+ # Button to navigate to the playground
11
+ if st.button("Go to Playground"):
12
+ st.experimental_set_query_params(page="playground")
13
+ st.write("Redirecting...")