This commit is contained in:
dyabel 2024-02-27 06:48:30 +00:00
parent 51d28369fc
commit b802e0bc44
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ We provide sample data in anytoolbench.json file.
# 🚗 Run AnyTool
Fill your OpenAI config and toolbench key into the config.py.
Fill your OpenAI config and toolbench key into the config.py (see config_example.py).
Run ToolBench
```

View file

@ -10,7 +10,7 @@ def extract_tool_data():
if root.split('/')[-1] not in tool_data:
tool_data[root.split('/')[-1]] = {}
with open(os.path.join(root, file), "r") as f:
# print(root, file)
print(root, file)
data = json.load(f)
try:
tool_name = data["tool_name"] if "tool_name" in data else data["name"]