From c35161a0cbdafbec5860e72a053773c564358c3b Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Mon, 14 Oct 2024 12:50:43 -0700 Subject: [PATCH] fixed issue with uploading images --- examples/chat/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat/app.py b/examples/chat/app.py index 2069218b..d77df9b7 100644 --- a/examples/chat/app.py +++ b/examples/chat/app.py @@ -147,7 +147,7 @@ def main(): f.write(uploaded_file.getbuffer()) # make it None so it wont load and overwrite the image - artifacts.artifacts[uploaded_file.name] = None + artifacts.artifacts[uploaded_file.name] = open(WORKSPACE / uploaded_file.name, "rb").read() for file in WORKSPACE.iterdir(): if "__pycache__" not in str(file) and not str(file).startswith("."):