CindyDelage commited on
Commit
4c01aaf
·
verified ·
1 Parent(s): 229b8de

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -57,7 +57,7 @@ class evaluate_consumption_example(Tool):
57
  description = "This is only an example. If a manager wants to know what you are capable of, use it : it will use code carbon to evaluate the CO2 emissions from an example Python code"
58
  output_type = "string"
59
 
60
- def forward(self):
61
  request = AudioEvaluationRequest()
62
  logging.info("Chargement des données")
63
  dataset = load_dataset(request.dataset_name, streaming=True, token=os.getenv("HF_TOKEN"))
 
57
  description = "This is only an example. If a manager wants to know what you are capable of, use it : it will use code carbon to evaluate the CO2 emissions from an example Python code"
58
  output_type = "string"
59
 
60
+ def forward(self, code=None):
61
  request = AudioEvaluationRequest()
62
  logging.info("Chargement des données")
63
  dataset = load_dataset(request.dataset_name, streaming=True, token=os.getenv("HF_TOKEN"))