wangrongsheng commited on
Commit
6c43b5d
·
verified ·
1 Parent(s): dde75ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ def process_audio(audio):
138
 
139
 
140
  # ===================== Prediction Function for Gradio (ZeroGPU) =====================
141
- @spaces.GPU(duration=500) # 关键:让 ZeroGPU 能检测到 GPU 函数,并把一次调用的最长占用设长些
142
  def predict(message, image, audio, chatbox):
143
  global _MODEL_ON_CUDA, model
144
 
 
138
 
139
 
140
  # ===================== Prediction Function for Gradio (ZeroGPU) =====================
141
+ @spaces.GPU(duration=120) # 关键:让 ZeroGPU 能检测到 GPU 函数,并把一次调用的最长占用设长些
142
  def predict(message, image, audio, chatbox):
143
  global _MODEL_ON_CUDA, model
144