Spaces:
Sleeping
Sleeping
Return gif_path and stability_flags
Browse files- tray_sim.py +2 -1
tray_sim.py
CHANGED
|
@@ -134,4 +134,5 @@ def run_tray_simulation(seed=0, num_objects=N_OBJECTS, azimuth=45, elevation=-25
|
|
| 134 |
# Save to GIF
|
| 135 |
gif_path = os.path.join(tempfile.gettempdir(), f"tray_sim_{seed}.gif")
|
| 136 |
imageio.mimsave(gif_path, frames, fps=20)
|
| 137 |
-
return gif_path
|
|
|
|
|
|
| 134 |
# Save to GIF
|
| 135 |
gif_path = os.path.join(tempfile.gettempdir(), f"tray_sim_{seed}.gif")
|
| 136 |
imageio.mimsave(gif_path, frames, fps=20)
|
| 137 |
+
#return gif_path
|
| 138 |
+
return gif_path, stability_flags
|