Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ standard_sys = f"""
|
|
20 |
|
21 |
"""
|
22 |
|
23 |
-
def extract_frames(video_in, interval=
|
24 |
"""Extract frames from a video at a specified interval and store them in a list.
|
25 |
|
26 |
Args:
|
@@ -140,6 +140,7 @@ def infer(video_in):
|
|
140 |
|
141 |
# Extract audio from video
|
142 |
extracted_audio = extract_audio(video_in)
|
|
|
143 |
|
144 |
# Get description of audio content
|
145 |
audio_content_described = get_salmonn(extracted_audio)
|
|
|
20 |
|
21 |
"""
|
22 |
|
23 |
+
def extract_frames(video_in, interval=24, output_format='.jpg'):
|
24 |
"""Extract frames from a video at a specified interval and store them in a list.
|
25 |
|
26 |
Args:
|
|
|
140 |
|
141 |
# Extract audio from video
|
142 |
extracted_audio = extract_audio(video_in)
|
143 |
+
print(extracted_audio)
|
144 |
|
145 |
# Get description of audio content
|
146 |
audio_content_described = get_salmonn(extracted_audio)
|