banao-tech commited on
Commit
afb729a
·
verified ·
1 Parent(s): e595136

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -9
app.py CHANGED
@@ -833,6 +833,14 @@ else:
833
  with col2:
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
 
837
  # Submit button
838
  st.markdown("<br>", unsafe_allow_html=True)
@@ -891,16 +899,18 @@ else:
891
 
892
  # Create settings
893
  settings = {
894
- "target_language": target_language,
895
- "tts_gender": tts_gender,
896
- "tts_voice": tts_voice,
897
- "toggle_hinglish": toggle_hinglish,
898
- "run_visualization": False,
899
- "subtitle": "",
900
- "programming_language": programming_language,
901
- "slide_colour": "blue",
902
- "video_type": "base_video"
 
903
  }
 
904
 
905
  # Generate topics data with user input for titles and course-specific values
906
  topics_data = []
 
833
  with col2:
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
+ enable_maths = st.toggle("Enable Maths Rendering", value=True)
840
+
841
+ with col4:
842
+ enable_visualizations = st.toggle("Enable Visualizations", value=False)
843
+
844
 
845
  # Submit button
846
  st.markdown("<br>", unsafe_allow_html=True)
 
899
 
900
  # Create settings
901
  settings = {
902
+ "target_language": target_language,
903
+ "tts_gender": tts_gender,
904
+ "tts_voice": tts_voice,
905
+ "toggle_hinglish": toggle_hinglish,
906
+ "enable_maths": enable_maths,
907
+ "enable_visualizations": enable_visualizations,
908
+ "subtitle": "",
909
+ "programming_language": programming_language,
910
+ "slide_colour": "blue",
911
+ "video_type": "base_video"
912
  }
913
+
914
 
915
  # Generate topics data with user input for titles and course-specific values
916
  topics_data = []