Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- inference.py +1 -6
inference.py
CHANGED
|
@@ -222,12 +222,7 @@ def run_task(task_id: str, client: OpenAI) -> None:
|
|
| 222 |
obs = step_result.observation
|
| 223 |
error_msg: Optional[str] = None
|
| 224 |
|
| 225 |
-
|
| 226 |
-
action = get_llm_action(client, obs)
|
| 227 |
-
except Exception as exc:
|
| 228 |
-
print(f"[DEBUG] Model request failed: {exc}", flush=True)
|
| 229 |
-
error_msg = str(exc).replace('"', "'").replace("\\", "")
|
| 230 |
-
action = _rule_based_action(obs)
|
| 231 |
|
| 232 |
action_str = f"TrafficAction(light_phase={action.light_phase})"
|
| 233 |
|
|
|
|
| 222 |
obs = step_result.observation
|
| 223 |
error_msg: Optional[str] = None
|
| 224 |
|
| 225 |
+
action = get_llm_action(client, obs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
action_str = f"TrafficAction(light_phase={action.light_phase})"
|
| 228 |
|