-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: fal file #16
Conversation
Co-authored-by: Daniel Rochetti <[email protected]>
a0c81f4
to
4017985
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, @badayvedat 👏
As discussed. I think that maybe the class name File is a bit misleading because in reality it's not referring to a file but to a link to a file. It works magically when it's used inside a fal runtime, but not so in users local environment. I like your idea of potentially renaming this class to FileUrl or FileLink.
with data.data as file: | ||
gcp_blob.upload_from_file(file, content_type=data.content_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work if filename == "" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! we should've raised an error in that case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say, once the tests pass, we ship it!
No description provided.