Leonardo Kamigauti commited on
Commit
98343a2
·
1 Parent(s): 5483334

Declare UserInputTool in agent tools list

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -77,7 +77,6 @@ def download_kaggle_dataset(
77
  return f"Dataset '{dataset_ref}' downloaded to '{download_path}'."
78
 
79
  final_answer = FinalAnswerTool()
80
- user_input = UserInputTool()
81
 
82
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
83
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -98,7 +97,7 @@ with open("prompts.yaml", 'r') as stream:
98
  agent = CodeAgent(
99
  model=model,
100
  tools=[final_answer,
101
- user_input,
102
  search_kaggle_datasets,
103
  download_kaggle_dataset,
104
  image_generation_tool],
 
77
  return f"Dataset '{dataset_ref}' downloaded to '{download_path}'."
78
 
79
  final_answer = FinalAnswerTool()
 
80
 
81
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
82
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
97
  agent = CodeAgent(
98
  model=model,
99
  tools=[final_answer,
100
+ UserInputTool(),
101
  search_kaggle_datasets,
102
  download_kaggle_dataset,
103
  image_generation_tool],