Update app.py
Browse files16 unmodified lines1718192021222324252627282916 unmodified lines# Initialize model and agentmodel = HfApiModel("meta-llama/Llama-3.1-70B-Instruct")agent = CodeAgent(tools=[],model=model,additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn"],# Remove max_iterations and add these parameters instead:max_steps=10,early_stopping=True)# Run analysisanalysis_result = agent.run(16 unmodified lines17181920212223242526272829303132333416 unmodified lines# Initialize model and agentmodel = HfApiModel("meta-llama/Llama-3.1-70B-Instruct")agent = CodeAgent(tools=[],model=model,additional_authorized_imports=["numpy","pandas","matplotlib.pyplot","seaborn"],# Version-compatible parameters:max_steps=10,handle_tool_errors=True)# Run analysisanalysis_result = agent.run(
app.py+9-4