Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,9 +56,6 @@ st.markdown("""
|
|
| 56 |
</style>
|
| 57 |
""", unsafe_allow_html=True)
|
| 58 |
|
| 59 |
-
# -------------------------------
|
| 60 |
-
# your original code below 👇
|
| 61 |
-
# -------------------------------
|
| 62 |
|
| 63 |
st.title("Gradient Descent Visualizer")
|
| 64 |
|
|
@@ -127,4 +124,8 @@ if 'func' in st.session_state and len(st.session_state.points) > 0:
|
|
| 127 |
)
|
| 128 |
|
| 129 |
fig = go.Figure(data=[trace1, trace2, trace3], layout=layout)
|
| 130 |
-
st.plotly_chart(fig,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</style>
|
| 57 |
""", unsafe_allow_html=True)
|
| 58 |
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
st.title("Gradient Descent Visualizer")
|
| 61 |
|
|
|
|
| 124 |
)
|
| 125 |
|
| 126 |
fig = go.Figure(data=[trace1, trace2, trace3], layout=layout)
|
| 127 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 128 |
+
st.success(f"Current Point = {iter_points[-1]}")
|
| 129 |
+
|
| 130 |
+
except Exception as e:
|
| 131 |
+
st.error(f"Plot error: {e}")
|