Spaces:
Running
on
Zero
Running
on
Zero
demo load
Browse files
app.py
CHANGED
@@ -359,8 +359,8 @@ with gr.Blocks(delete_cache=(600, 600), title="TRELLIS Text-to-3D") as demo:
|
|
359 |
print("Defining Gradio event handlers...")
|
360 |
|
361 |
# Handle session start/end
|
362 |
-
|
363 |
-
|
364 |
|
365 |
# --- Generate Button Click Flow ---
|
366 |
# 1. Get Seed -> 2. Run text_to_3d -> 3. Enable extraction buttons
|
|
|
359 |
print("Defining Gradio event handlers...")
|
360 |
|
361 |
# Handle session start/end
|
362 |
+
demo.load(start_session)
|
363 |
+
demo.unload(end_session)
|
364 |
|
365 |
# --- Generate Button Click Flow ---
|
366 |
# 1. Get Seed -> 2. Run text_to_3d -> 3. Enable extraction buttons
|