Spaces:
Running
on
Zero
Running
on
Zero
Remove Structured output decoding
Browse files
app.py
CHANGED
|
@@ -357,14 +357,7 @@ def navigate(input_numpy_image: np.ndarray, task: str) -> str:
|
|
| 357 |
print(f"Error during model inference: {e}")
|
| 358 |
return f"Error during model inference: {e}", resized_image.copy().convert("RGB")
|
| 359 |
|
| 360 |
-
|
| 361 |
-
return NavigationStep(**json.loads(navigation_str))
|
| 362 |
-
except Exception as e:
|
| 363 |
-
print(f"Error parsing navigation step. \nGenerated: {navigation_str}. \nError: {e}")
|
| 364 |
-
return (
|
| 365 |
-
f"Error parsing navigation step. \nGenerated: {navigation_str}. \nError: {e}",
|
| 366 |
-
resized_image.copy().convert("RGB"),
|
| 367 |
-
)
|
| 368 |
|
| 369 |
|
| 370 |
# --- Load Example Data ---
|
|
|
|
| 357 |
print(f"Error during model inference: {e}")
|
| 358 |
return f"Error during model inference: {e}", resized_image.copy().convert("RGB")
|
| 359 |
|
| 360 |
+
return navigation_str
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
|
| 362 |
|
| 363 |
# --- Load Example Data ---
|