trohith89 commited on
Commit
f5deb75
·
verified ·
1 Parent(s): d59b677

Create home.py

Browse files
Files changed (1) hide show
  1. home.py +22 -0
home.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()