Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ class StopCommand:
|
|
| 155 |
def create_gpu_game_loop(command_queue: Queue, initial_seed_image=None, initial_seed_url=None, initial_prompt="An explorable world"):
|
| 156 |
"""Create GPU game loop generator with closure over command_queue."""
|
| 157 |
|
| 158 |
-
@spaces.GPU(duration=
|
| 159 |
def gpu_game_loop():
|
| 160 |
"""
|
| 161 |
Generator that keeps GPU allocated and processes commands.
|
|
@@ -714,7 +714,6 @@ def create_app():
|
|
| 714 |
label="Preset Worlds",
|
| 715 |
columns=5,
|
| 716 |
rows=1,
|
| 717 |
-
height=100,
|
| 718 |
object_fit="cover",
|
| 719 |
allow_preview=False,
|
| 720 |
elem_classes=["world-gallery"],
|
|
@@ -725,7 +724,7 @@ def create_app():
|
|
| 725 |
label="Custom World Image",
|
| 726 |
type="pil",
|
| 727 |
sources=["upload", "clipboard"],
|
| 728 |
-
height=
|
| 729 |
elem_classes=["seed-image-upload"],
|
| 730 |
)
|
| 731 |
reset_btn = gr.Button("Restart World", variant="secondary", size="sm")
|
|
|
|
| 155 |
def create_gpu_game_loop(command_queue: Queue, initial_seed_image=None, initial_seed_url=None, initial_prompt="An explorable world"):
|
| 156 |
"""Create GPU game loop generator with closure over command_queue."""
|
| 157 |
|
| 158 |
+
@spaces.GPU(duration=90)
|
| 159 |
def gpu_game_loop():
|
| 160 |
"""
|
| 161 |
Generator that keeps GPU allocated and processes commands.
|
|
|
|
| 714 |
label="Preset Worlds",
|
| 715 |
columns=5,
|
| 716 |
rows=1,
|
|
|
|
| 717 |
object_fit="cover",
|
| 718 |
allow_preview=False,
|
| 719 |
elem_classes=["world-gallery"],
|
|
|
|
| 724 |
label="Custom World Image",
|
| 725 |
type="pil",
|
| 726 |
sources=["upload", "clipboard"],
|
| 727 |
+
height=220,
|
| 728 |
elem_classes=["seed-image-upload"],
|
| 729 |
)
|
| 730 |
reset_btn = gr.Button("Restart World", variant="secondary", size="sm")
|