Spaces:
Build error
Build error
Update app.py
Browse files515 unmodified lines516517518519519520521522523515 unmodified lines if "invalid" not in response_text.lower(): break iterations += 1
print(response) print(response_text) if iterations == max_iterations: return "The agent could not generate a valid response within the iteration limit."
app.py+2-1