Skip to content

Commit

Permalink
fixed issue with uploading images
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Oct 14, 2024
1 parent cc56618 commit c35161a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chat/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("."):
Expand Down

0 comments on commit c35161a

Please sign in to comment.