Skip to content

Commit

Permalink
change to yaml_to_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Sampreeth-sarma committed Oct 1, 2024
1 parent 9a66c31 commit f7420e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaml_to_tools_dict.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import yaml
import json
import os
from function_resolver.app.arch_handler import ArchHandler
from model_server.app.arch_fc.arch_handler import ArchHandler

def convert_yaml_to_tools_dict(yaml_file_path):
with open(yaml_file_path, 'r') as file:
Expand Down Expand Up @@ -61,7 +61,7 @@ def convert_yaml_to_tools_dict(yaml_file_path):


if __name__ == '__main__':
yaml_file_path = os.path.abspath('demos/employee_details_copilot/bolt_config.yaml')
yaml_file_path = os.path.abspath('demos/function_calling/arch_config.yaml')
tools_dict = convert_yaml_to_tools_dict(yaml_file_path)

print(json.dumps(tools_dict, indent=2), "\n\n\n")
Expand Down

0 comments on commit f7420e4

Please sign in to comment.