Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def process_audio(audio):
|
|
138 |
|
139 |
|
140 |
# ===================== Prediction Function for Gradio (ZeroGPU) =====================
|
141 |
-
@spaces.GPU(duration=
|
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 |
|