Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files2735 unmodified lines2736273727382739274027392740274127422742274327442745274627472748274927502735 unmodified lines last_step = getattr(getattr(run_agent, "memory", None), "steps", None) if last_step: for st in reversed(last_step): obs_txt = getattr(st, "action_output", None) or getattr(st, "observations", None) if obs_txt: obs_txt = getattr(st, "action_output", None) if obs_txt is not None and str(obs_txt).strip(): fallback_clean = self._clean_exact_match_answer(str(obs_txt)) if fallback_clean and not fallback_clean.startswith("AGENT ERROR:"): if ( fallback_clean and not fallback_clean.startswith("AGENT ERROR:") and len(fallback_clean) <= 200 and "\n" not in fallback_clean ): return fallback_clean blocked_models.add(model_name) breakapp.py+8-3