hina19 commited on
Commit
479b193
Β·
verified Β·
1 Parent(s): 2006ef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -113,7 +113,7 @@ if uploaded_file:
113
 
114
 
115
  summary = summarize_captions(captions)
116
- st.write("πŸ“Œ Video Summary:", summary)
117
 
118
  # Text-to-Speech
119
  st.write("πŸ”Š Generating voice narration...")
@@ -124,8 +124,9 @@ if uploaded_file:
124
 
125
  text_to_speech(summary)
126
  st.audio('summary_audio.mp3')
127
-
128
-
 
129
  def create_summary_video(image_folder, output_video):
130
  images = sorted([os.path.join(image_folder, img) for img in os.listdir(image_folder) if img.endswith(".jpg")])
131
  clips = [mp.ImageClip(img).set_duration(2) for img in images] # 2 sec per frame
 
113
 
114
 
115
  summary = summarize_captions(captions)
116
+
117
 
118
  # Text-to-Speech
119
  st.write("πŸ”Š Generating voice narration...")
 
124
 
125
  text_to_speech(summary)
126
  st.audio('summary_audio.mp3')
127
+
128
+ #Video -summary
129
+ st.write("πŸ“Œ Video Summary:", summary)
130
  def create_summary_video(image_folder, output_video):
131
  images = sorted([os.path.join(image_folder, img) for img in os.listdir(image_folder) if img.endswith(".jpg")])
132
  clips = [mp.ImageClip(img).set_duration(2) for img in images] # 2 sec per frame