linlinlinlinsdada commited on
Commit
08d8ff4
·
verified ·
1 Parent(s): 053517c
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -134,7 +134,8 @@ def build(pipe):
134
  return fn(pipe, *args)
135
  except ValueError as e:
136
  raise gr.Error(str(e))
137
- return spaces.GPU(duration=120)(run) if spaces else run
 
138
 
139
  with gr.Blocks(title="Jeveration") as demo:
140
  gr.Markdown("# Jeveration\nA frozen vision-language model returns a whole 512 x 512 image as one decision, in a "
 
134
  return fn(pipe, *args)
135
  except ValueError as e:
136
  raise gr.Error(str(e))
137
+ # ZeroGPU takes the reserved seconds from what the visitor's quota must still cover; a request needs 1 to 7 s
138
+ return spaces.GPU(duration=30)(run) if spaces else run
139
 
140
  with gr.Blocks(title="Jeveration") as demo:
141
  gr.Markdown("# Jeveration\nA frozen vision-language model returns a whole 512 x 512 image as one decision, in a "