Spaces:
Running on Zero
Running on Zero
Web demo
Browse files
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 |
-
|
|
|
|
| 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 "
|