Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def process_job(job_id):
|
|
| 37 |
# Step 2: Generate 3D asset
|
| 38 |
c.execute("UPDATE jobs SET status='generating' WHERE id=?", (job_id,))
|
| 39 |
conn.commit()
|
| 40 |
-
time.sleep(
|
| 41 |
result_3d = trellis_client.predict(
|
| 42 |
image=handle_file(preprocessed_image), # Use preprocessed image
|
| 43 |
multiimages=[],
|
|
@@ -54,7 +54,7 @@ def process_job(job_id):
|
|
| 54 |
# Step 3: Extract GLB
|
| 55 |
c.execute("UPDATE jobs SET status='extracting' WHERE id=?", (job_id,))
|
| 56 |
conn.commit()
|
| 57 |
-
time.sleep(
|
| 58 |
glb_result = trellis_client.predict(
|
| 59 |
mesh_simplify=0.95,
|
| 60 |
texture_size=1024,
|
|
|
|
| 37 |
# Step 2: Generate 3D asset
|
| 38 |
c.execute("UPDATE jobs SET status='generating' WHERE id=?", (job_id,))
|
| 39 |
conn.commit()
|
| 40 |
+
time.sleep(30) # Wait between steps; adjust based on observed timing
|
| 41 |
result_3d = trellis_client.predict(
|
| 42 |
image=handle_file(preprocessed_image), # Use preprocessed image
|
| 43 |
multiimages=[],
|
|
|
|
| 54 |
# Step 3: Extract GLB
|
| 55 |
c.execute("UPDATE jobs SET status='extracting' WHERE id=?", (job_id,))
|
| 56 |
conn.commit()
|
| 57 |
+
time.sleep(30) # Wait for 3D processing; adjust as needed
|
| 58 |
glb_result = trellis_client.predict(
|
| 59 |
mesh_simplify=0.95,
|
| 60 |
texture_size=1024,
|