Hasnain-Ali commited on
Commit
6ec0137
·
verified ·
1 Parent(s): 31043f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -29,7 +29,7 @@ def transcribe_video(video_path):
29
 
30
  # Create an ASS file with karaoke-style effects.
31
  # Each segment is split into words; each word gets an ASS karaoke tag (\k)
32
- # which reveals it gradually over the segment’s duration.
33
  def create_ass(segments, ass_path):
34
  header = """[Script Info]
35
  Title: AI Captioning
@@ -40,8 +40,8 @@ PlayResY: 720
40
  Timer: 100.0000
41
 
42
  [V4+ Styles]
43
- Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
44
- Style: Default,Arial,36,&H00FFFFFF,&H000000FF,&H00000000,&H64000000,0,0,0,0,100,100,0,0,1,2,0,2,10,10,30,1
45
 
46
  [Events]
47
  Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
 
29
 
30
  # Create an ASS file with karaoke-style effects.
31
  # Each segment is split into words; each word gets an ASS karaoke tag (\k)
32
+ # which gradually reveals it. The unrevealed text is made fully transparent.
33
  def create_ass(segments, ass_path):
34
  header = """[Script Info]
35
  Title: AI Captioning
 
40
  Timer: 100.0000
41
 
42
  [V4+ Styles]
43
+ ; Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
44
+ Style: Default,Arial,36,&H00FFFFFF,&HFF000000,&H00000000,&H64000000,0,0,0,0,100,100,0,0,1,2,0,2,10,10,30,1
45
 
46
  [Events]
47
  Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text