Hakureirm commited on
Commit
2a84f5a
·
verified ·
1 Parent(s): 684b3ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=3000)
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
  处理视频并进行小鼠检测