Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def login(username, password):
|
|
32 |
return gr.update(visible=False), gr.update(visible=True), "登录成功"
|
33 |
return gr.update(visible=True), gr.update(visible=False), "用户名或密码错误"
|
34 |
|
35 |
-
@spaces.GPU(duration=
|
36 |
def process_video(video_path, process_seconds=20, conf_threshold=0.2, max_det=8):
|
37 |
"""
|
38 |
处理视频并进行小鼠检测
|
|
|
32 |
return gr.update(visible=False), gr.update(visible=True), "登录成功"
|
33 |
return gr.update(visible=True), gr.update(visible=False), "用户名或密码错误"
|
34 |
|
35 |
+
@spaces.GPU(duration=120)
|
36 |
def process_video(video_path, process_seconds=20, conf_threshold=0.2, max_det=8):
|
37 |
"""
|
38 |
处理视频并进行小鼠检测
|