FarhadMadadzade commited on
Commit
4969c68
1 Parent(s): 326258c
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -77,6 +77,7 @@ def process_video(date):
77
 
78
  # Extract the first 30 seconds of the video
79
  short_video_path = f"short_{date}.mp4"
 
80
  ffmpeg_extract_subclip(video_path, 0, 30, targetname=short_video_path)
81
 
82
  # Extract audio from the short video
@@ -104,7 +105,7 @@ def process_video(date):
104
  )
105
  transcription = "No decision was made on this date."
106
 
107
- return short_video_path, transcription
108
 
109
 
110
  iface = gr.Interface(
 
77
 
78
  # Extract the first 30 seconds of the video
79
  short_video_path = f"short_{date}.mp4"
80
+ video_path = short_video_path
81
  ffmpeg_extract_subclip(video_path, 0, 30, targetname=short_video_path)
82
 
83
  # Extract audio from the short video
 
105
  )
106
  transcription = "No decision was made on this date."
107
 
108
+ return video_path, transcription
109
 
110
 
111
  iface = gr.Interface(