Return stability flag
Browse files
app.py
CHANGED
|
@@ -5,7 +5,10 @@ import gradio as gr
|
|
| 5 |
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 |
return gif_path
|
| 10 |
|
| 11 |
#iface = gr.Interface(
|
|
|
|
| 5 |
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 |
+
print("Stability:", stability_flags) # Optional debug
|
| 11 |
+
|
| 12 |
return gif_path
|
| 13 |
|
| 14 |
#iface = gr.Interface(
|