Update app.py
Browse files
app.py
CHANGED
|
@@ -834,12 +834,25 @@ else:
|
|
| 834 |
st.markdown("<br>", unsafe_allow_html=True)
|
| 835 |
toggle_hinglish = st.toggle("Enable Hinglish", value=True, help="Enable mixing of Hindi and English")
|
| 836 |
# NEW: Maths & Visualization toggles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 837 |
col3, col4 = st.columns(2)
|
|
|
|
| 838 |
with col3:
|
| 839 |
-
|
|
|
|
| 840 |
|
| 841 |
with col4:
|
| 842 |
-
|
|
|
|
| 843 |
|
| 844 |
|
| 845 |
# Submit button
|
|
|
|
| 834 |
st.markdown("<br>", unsafe_allow_html=True)
|
| 835 |
toggle_hinglish = st.toggle("Enable Hinglish", value=True, help="Enable mixing of Hindi and English")
|
| 836 |
# NEW: Maths & Visualization toggles
|
| 837 |
+
st.markdown("""
|
| 838 |
+
<style>
|
| 839 |
+
.toggle-label {
|
| 840 |
+
color: white !important;
|
| 841 |
+
font-weight: 500;
|
| 842 |
+
font-size: 14px;
|
| 843 |
+
}
|
| 844 |
+
</style>
|
| 845 |
+
""", unsafe_allow_html=True)
|
| 846 |
+
|
| 847 |
col3, col4 = st.columns(2)
|
| 848 |
+
|
| 849 |
with col3:
|
| 850 |
+
st.markdown('<span class="toggle-label">Enable Maths Rendering</span>', unsafe_allow_html=True)
|
| 851 |
+
enable_maths = st.toggle("", value=True, key="maths_toggle")
|
| 852 |
|
| 853 |
with col4:
|
| 854 |
+
st.markdown('<span class="toggle-label">Enable Visualizations</span>', unsafe_allow_html=True)
|
| 855 |
+
enable_visualizations = st.toggle("", value=False, key="viz_toggle")
|
| 856 |
|
| 857 |
|
| 858 |
# Submit button
|