Add missing ID definition
Browse files
app.py
CHANGED
|
@@ -27,6 +27,10 @@ def simulate_and_render(
|
|
| 27 |
Returns:
|
| 28 |
str: Path to the rendered GIF file showing the simulation from the specified viewpoint.
|
| 29 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
gif_path, stability_flags, physics_state, llm_friendly_output, json_path = run_tray_simulation(
|
| 31 |
seed=seed,
|
| 32 |
azimuth=azimuth,
|
|
|
|
| 27 |
Returns:
|
| 28 |
str: Path to the rendered GIF file showing the simulation from the specified viewpoint.
|
| 29 |
"""
|
| 30 |
+
global run_counter
|
| 31 |
+
run_counter += 1
|
| 32 |
+
unique_id = f"{seed}_{run_counter}_{int(time.time())}" # Unique identifier for this run
|
| 33 |
+
|
| 34 |
gif_path, stability_flags, physics_state, llm_friendly_output, json_path = run_tray_simulation(
|
| 35 |
seed=seed,
|
| 36 |
azimuth=azimuth,
|