Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ import main as comfy_main
|
|
| 30 |
# ==========================================
|
| 31 |
# 2. Define GPU Inference Function
|
| 32 |
# ==========================================
|
| 33 |
-
@spaces.
|
| 34 |
def generate_image(user_prompt):
|
| 35 |
# Load your exported ComfyUI API JSON
|
| 36 |
# (Make sure workflow_api.json is uploaded to your Space's main directory)
|
|
|
|
| 30 |
# ==========================================
|
| 31 |
# 2. Define GPU Inference Function
|
| 32 |
# ==========================================
|
| 33 |
+
@spaces.GPU(duration=60) # Borrow free ZeroGPU for 60 seconds per run
|
| 34 |
def generate_image(user_prompt):
|
| 35 |
# Load your exported ComfyUI API JSON
|
| 36 |
# (Make sure workflow_api.json is uploaded to your Space's main directory)
|