sreepathi-ravikumar commited on
Commit
c7adf67
·
verified ·
1 Parent(s): f362ff5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -515,7 +515,7 @@ def create_manim_script(problem_data, script_path, audio_path, scale=1):
515
  highlight_color = settings.get("highlight_color", "YELLOW")
516
  font = settings.get("font", "CMU Serif")
517
  text_size = settings.get("text_size", 36)
518
- equation_size = settings.get("equation_size", 45)
519
  title_size = settings.get("title_size", 48)
520
 
521
  manim_code = f"""from manim import *
@@ -579,7 +579,7 @@ class GeneratedMathScene(Scene):
579
  if slide_type == "title":
580
  title_text = content
581
  if title_text:
582
- lines_group = make_wrapped_paragraph(title_text, highlight_color, default_font, title_size, line_spacing=0.5)
583
  obj = lines_group if len(lines_group) > 0 else Text(title_text, color=highlight_color, font=default_font, font_size=title_size)
584
  else:
585
  obj = Text("", color=highlight_color, font=default_font, font_size=title_size)
 
515
  highlight_color = settings.get("highlight_color", "YELLOW")
516
  font = settings.get("font", "CMU Serif")
517
  text_size = settings.get("text_size", 36)
518
+ equation_size = settings.get("equation_size", 50)
519
  title_size = settings.get("title_size", 48)
520
 
521
  manim_code = f"""from manim import *
 
579
  if slide_type == "title":
580
  title_text = content
581
  if title_text:
582
+ lines_group = make_wrapped_paragraph(title_text, highlight_color, default_font, title_size, line_spacing=0.3)
583
  obj = lines_group if len(lines_group) > 0 else Text(title_text, color=highlight_color, font=default_font, font_size=title_size)
584
  else:
585
  obj = Text("", color=highlight_color, font=default_font, font_size=title_size)