sxela commited on
Commit
04a9d78
1 Parent(s): 187e8a8

shorten max time

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -149,6 +149,8 @@ def predict_fn(filepath, start_sec, duration, out_fps, interpolate):
149
 
150
  del video_all
151
  del audio_all
 
 
152
 
153
  return 'out.mp4'
154
 
@@ -167,7 +169,7 @@ gr.Interface(
167
  article = article,
168
  enable_queue=True,
169
  examples=[
170
- ['obama.webm', 23, 10, 30],
171
  ],
172
  allow_flagging=False
173
  ).launch()
 
149
 
150
  del video_all
151
  del audio_all
152
+ del vid
153
+ gc.collect()
154
 
155
  return 'out.mp4'
156
 
 
169
  article = article,
170
  enable_queue=True,
171
  examples=[
172
+ ['obama.webm', 23, 6, 24],
173
  ],
174
  allow_flagging=False
175
  ).launch()