Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def process_video(video_path, seconds_per_frame=2):
|
|
107 |
|
108 |
return base64Frames, audio_path
|
109 |
|
110 |
-
def
|
111 |
if video_input is not None:
|
112 |
# Save the uploaded video file
|
113 |
video_path = save_video(video_file)
|
@@ -147,7 +147,7 @@ def main():
|
|
147 |
process_audio(audio_input)
|
148 |
elif option == "Video":
|
149 |
video_input = st.file_uploader("Upload a video file", type=["mp4"])
|
150 |
-
|
151 |
|
152 |
if __name__ == "__main__":
|
153 |
main()
|
|
|
107 |
|
108 |
return base64Frames, audio_path
|
109 |
|
110 |
+
def process_audio_and_video(video_input):
|
111 |
if video_input is not None:
|
112 |
# Save the uploaded video file
|
113 |
video_path = save_video(video_file)
|
|
|
147 |
process_audio(audio_input)
|
148 |
elif option == "Video":
|
149 |
video_input = st.file_uploader("Upload a video file", type=["mp4"])
|
150 |
+
process_audio_and_video(video_input)
|
151 |
|
152 |
if __name__ == "__main__":
|
153 |
main()
|