Dacho688 commited on
Commit
dd05d06
·
1 Parent(s): 0737786

max_iterations

Browse files

Set max_iterations = 2 to limit inference costs.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,7 @@ agent = ReactCodeAgent(
17
  tools=[],
18
  llm_engine=llm_engine,
19
  additional_authorized_imports=["numpy", "pandas", "matplotlib", "seaborn","scipy","sklearn"],
20
- max_iterations=10,
21
  )
22
 
23
  base_prompt = """You are an expert full stack data analyst.
@@ -103,6 +103,7 @@ I come packed with pandas, numpy, sklearn, matplotlib, seaborn, and more!
103
  1. Drop or upload a `.csv` file below.
104
  2. Ask a question or give it a task.
105
  3. **Watch the AI Agent think, act, and observe until final answer.
 
106
  \n**For an example, click on the example at the bottom of page to auto populate.**""")
107
 
108
  file_input = gr.File(label="Drop/upload a .csv file to analyze")
 
17
  tools=[],
18
  llm_engine=llm_engine,
19
  additional_authorized_imports=["numpy", "pandas", "matplotlib", "seaborn","scipy","sklearn"],
20
+ max_iterations=2,
21
  )
22
 
23
  base_prompt = """You are an expert full stack data analyst.
 
103
  1. Drop or upload a `.csv` file below.
104
  2. Ask a question or give it a task.
105
  3. **Watch the AI Agent think, act, and observe until final answer.
106
+ 4. **Please note that this is only a demo and thus max_iterations has been set to 2 in order to limit inference costs.
107
  \n**For an example, click on the example at the bottom of page to auto populate.**""")
108
 
109
  file_input = gr.File(label="Drop/upload a .csv file to analyze")