Evan Lesmez
Change from langchain to openAI assistant + other apis #1206495920334457
3811482
raw
history blame
424 Bytes
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/05_utils.ipynb.
# %% auto 0
__all__ = ['load_json', 'dump_json']
# %% ../nbs/05_utils.ipynb 3
import json
# %% ../nbs/05_utils.ipynb 4
def load_json(file_path):
with open(file_path, 'r') as file:
return json.load(file)
# %% ../nbs/05_utils.ipynb 5
def dump_json(data, path: str):
with open(path, "w") as fp:
return json.dump(data, fp, indent=2)