Leonardo Kamigauti commited on
Commit
5483334
·
1 Parent(s): 8aeccbc

Add UserInputTool

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool,HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -77,6 +77,7 @@ def download_kaggle_dataset(
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,6 +98,7 @@ with open("prompts.yaml", 'r') as stream:
97
  agent = CodeAgent(
98
  model=model,
99
  tools=[final_answer,
 
100
  search_kaggle_datasets,
101
  download_kaggle_dataset,
102
  image_generation_tool],
 
1
+ from smolagents import CodeAgent,DuckDuckGoSearchTool,HfApiModel,load_tool,tool,UserInputTool
2
  import datetime
3
  import requests
4
  import pytz
 
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
  agent = CodeAgent(
99
  model=model,
100
  tools=[final_answer,
101
+ user_input,
102
  search_kaggle_datasets,
103
  download_kaggle_dataset,
104
  image_generation_tool],