Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import numpy as np
|
|
7 |
import os
|
8 |
import time
|
9 |
|
|
|
10 |
# 设置umask确保新创建的文件有正确的权限
|
11 |
os.umask(0o022)
|
12 |
|
@@ -236,7 +237,7 @@ iface = gr.Interface(fn=process_video,
|
|
236 |
gr.Video(label="输入视频", format="mp4"),
|
237 |
gr.Image(label="要植入的帧", type="pil"),
|
238 |
gr.Slider(minimum=12,
|
239 |
-
maximum=
|
240 |
value=30,
|
241 |
step=1,
|
242 |
label="植入间隔(帧数)",
|
|
|
7 |
import os
|
8 |
import time
|
9 |
|
10 |
+
|
11 |
# 设置umask确保新创建的文件有正确的权限
|
12 |
os.umask(0o022)
|
13 |
|
|
|
237 |
gr.Video(label="输入视频", format="mp4"),
|
238 |
gr.Image(label="要植入的帧", type="pil"),
|
239 |
gr.Slider(minimum=12,
|
240 |
+
maximum=300,
|
241 |
value=30,
|
242 |
step=1,
|
243 |
label="植入间隔(帧数)",
|