AR14020 commited on
Commit
3af2ae1
Β·
verified Β·
1 Parent(s): 3ecea7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -60,7 +60,13 @@ def main():
60
 
61
  # Display steps
62
  st.subheader("Step-by-Step Solution")
63
-
 
 
 
 
 
 
64
  st.markdown("### 1. Choose u and v':")
65
  st.latex(f"u = {latex(u)}, \\quad v' = {latex(dv)}")
66
 
@@ -87,6 +93,9 @@ def main():
87
  st.subheader("Final Answer")
88
  st.latex(f"{latex(result)} + C")
89
 
 
 
 
90
  except Exception as e:
91
  st.error(f"An error occurred: {e}")
92
 
 
60
 
61
  # Display steps
62
  st.subheader("Step-by-Step Solution")
63
+
64
+ # Use HTML and CSS to create a scrollable area for the content
65
+ st.markdown(
66
+ """
67
+ <div style="height: 500px; overflow-y: scroll;">
68
+ """, unsafe_allow_html=True)
69
+
70
  st.markdown("### 1. Choose u and v':")
71
  st.latex(f"u = {latex(u)}, \\quad v' = {latex(dv)}")
72
 
 
93
  st.subheader("Final Answer")
94
  st.latex(f"{latex(result)} + C")
95
 
96
+ # Close the scrollable area div
97
+ st.markdown("</div>", unsafe_allow_html=True)
98
+
99
  except Exception as e:
100
  st.error(f"An error occurred: {e}")
101