This commit is contained in:
William Guss
2024-09-11 23:22:52 -07:00
parent 40638bd541
commit 55f3dfef71
2 changed files with 2 additions and 3 deletions

View File

@@ -17,6 +17,6 @@ def make_a_joke_about_the_image(image: Image.Image) -> str:
if __name__ == "__main__":
ell.set_store('./logdir', autocommit=True)
ell.set_store('./logdir', autocommit=False)
joke = make_a_joke_about_the_image(cat_meme_pil)
print(joke)

View File

@@ -172,6 +172,7 @@ def _serialize_lmp(func):
already_in_store = any(lmp.lmp_id == func.__ell_hash__ for lmp in lmps)
if not already_in_store:
commit = None
if lmps:
latest_lmp = max(lmps, key=lambda x: x.created_at)
version = latest_lmp.version_number + 1
@@ -180,8 +181,6 @@ def _serialize_lmp(func):
commit = str(write_commit_message_for_diff(
f"{latest_lmp.dependencies}\n\n{latest_lmp.source}",
f"{fn_closure[1]}\n\n{fn_closure[0]}")[0])
else:
commit = None
serialized_lmp = SerializedLMP(
lmp_id=func.__ell_hash__,