Add printouts
Browse files
app.py
CHANGED
|
@@ -6,8 +6,17 @@ from tray_sim import run_tray_simulation
|
|
| 6 |
|
| 7 |
def simulate_and_render(seed: int, azimuth: float=35, elevation: float=-20, distance: float=1.0):
|
| 8 |
#gif_path = run_tray_simulation(seed=seed, azimuth=azimuth, elevation=elevation, distance=distance)
|
| 9 |
-
gif_path, stability_flags = run_tray_simulation(seed=seed, azimuth=azimuth, elevation=elevation, distance=distance)
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
return gif_path
|
| 13 |
|
|
|
|
| 6 |
|
| 7 |
def simulate_and_render(seed: int, azimuth: float=35, elevation: float=-20, distance: float=1.0):
|
| 8 |
#gif_path = run_tray_simulation(seed=seed, azimuth=azimuth, elevation=elevation, distance=distance)
|
| 9 |
+
#gif_path, stability_flags = run_tray_simulation(seed=seed, azimuth=azimuth, elevation=elevation, distance=distance)
|
| 10 |
+
gif_path, stability_flags, physics_state, llm_friendly_output, json_path = run_tray_simulation(
|
| 11 |
+
seed=seed,
|
| 12 |
+
azimuth=azimuth,
|
| 13 |
+
elevation=elevation,
|
| 14 |
+
distance=distance
|
| 15 |
+
)
|
| 16 |
+
print("Stability: ", stability_flags) # Optional debug
|
| 17 |
+
print("Physics State: ", physics_state)
|
| 18 |
+
print("LLM Output: ", llm_friendly_output)
|
| 19 |
+
print("JSON Path: ", json_path)
|
| 20 |
|
| 21 |
return gif_path
|
| 22 |
|