multimodalart HF Staff commited on
Commit
0b000fa
·
verified ·
1 Parent(s): d714174

Tighten ZeroGPU duration to 60s based on measured inference time

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -49,7 +49,10 @@ pipeline = RePlanPipeline(
49
  )
50
 
51
 
52
- @spaces.GPU(duration=120)
 
 
 
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,