mirror of
https://github.com/MadcowD/ell.git
synced 2024-09-22 16:14:36 +03:00
fix #154
This commit is contained in:
@@ -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)
|
||||
@@ -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__,
|
||||
|
||||
Reference in New Issue
Block a user