Update home.py
Browse files
home.py
CHANGED
|
@@ -1,22 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
st.set_page_config(page_title="Home", layout="
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
st.title("Welcome to the Gradient Descent
|
|
|
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
st.
|
| 11 |
-
|
| 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...")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|