hina19 commited on
Commit
b026475
·
verified ·
1 Parent(s): 479b193

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -113,6 +113,7 @@ if uploaded_file:
113
 
114
 
115
  summary = summarize_captions(captions)
 
116
 
117
 
118
  # Text-to-Speech
@@ -126,7 +127,7 @@ if uploaded_file:
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
 
113
 
114
 
115
  summary = summarize_captions(captions)
116
+ st.write(summary)
117
 
118
 
119
  # Text-to-Speech
 
127
  st.audio('summary_audio.mp3')
128
 
129
  #Video -summary
130
+ st.write("📌 Video Summary:")
131
  def create_summary_video(image_folder, output_video):
132
  images = sorted([os.path.join(image_folder, img) for img in os.listdir(image_folder) if img.endswith(".jpg")])
133
  clips = [mp.ImageClip(img).set_duration(2) for img in images] # 2 sec per frame