Spaces:
Runtime error
Runtime error
Update app.py
Browse files759 unmodified lines760761762763764765766767768769770759 unmodified linesprint(f"Error loading image file: {e}")response_text = "Chart generation failed. Please try again."if("max iterations" in response_text):print("max iterations error")return user_question, response_textelse:if("max iterations" in response_text):print("max iterations error")return user_question, response_text# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()# return response_text759 unmodified lines760761762763764765766767768769770771772773774775776759 unmodified linesprint(f"Error loading image file: {e}")response_text = "Chart generation failed. Please try again."if("max iterations" in response_text):print("max iterations error in 1")if agent_executor.history:print(agent_executor.history[-1])#return agent_executor.history[-1].get("output")return user_question, response_textelse:if("max iterations" in response_text):print("max iterations error in 2")if agent_executor.history:print(agent_executor.history[-1])return user_question, response_text# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()# return response_text
app.py+8-2