Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
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"))
|