Spaces:
Running on Zero
Running on Zero
Tighten ZeroGPU duration to 60s based on measured inference time
Browse files
app.py
CHANGED
|
@@ -49,7 +49,10 @@ pipeline = RePlanPipeline(
|
|
| 49 |
)
|
| 50 |
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
| 53 |
def edit_image(
|
| 54 |
image: Image.Image,
|
| 55 |
instruction: str,
|
|
|
|
| 49 |
)
|
| 50 |
|
| 51 |
|
| 52 |
+
# Measured GPU time for a single-region 4-step edit is ~5-6s. Multi-region
|
| 53 |
+
# instructions produce longer VLM reasoning (up to 2048 tokens) + more diffusion
|
| 54 |
+
# work, so we keep a comfortable-but-lean margin.
|
| 55 |
+
@spaces.GPU(duration=60)
|
| 56 |
def edit_image(
|
| 57 |
image: Image.Image,
|
| 58 |
instruction: str,
|