wangrongsheng commited on
Commit
dde75ee
·
verified ·
1 Parent(s): f32d334
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=600) # 关键:让 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=500) # 关键:让 ZeroGPU 能检测到 GPU 函数,并把一次调用的最长占用设长些
142
  def predict(message, image, audio, chatbox):
143
  global _MODEL_ON_CUDA, model
144