Skip to content

Commit

Permalink
Nit in ValueError (#3669)
Browse files Browse the repository at this point in the history
* Nit in ValueError

* CHANGELOG

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
  • Loading branch information
osanseviero and freddyaboulton authored Mar 28, 2023
1 parent becada8 commit a46b180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Ensure CSS has fully loaded before rendering the application, by [@pngwn](https://github.com/pngwn) in [PR 3573](https://github.com/gradio-app/gradio/pull/3573)
- Support using an empty list as `gr.Dataframe` value, by [@space-nuko](https://github.com/space-nuko) in [PR 3646](https://github.com/gradio-app/gradio/pull/3646)
- Correct the documentation of `gr.File` component to state that its preprocessing method converts the uploaded file to a temporary file, by @RussellLuo in [PR 3660](https://github.com/gradio-app/gradio/pull/3660)
- Fixed bug in Serializer ValueError text by [@osanseviero](https://github.com/osanseviero) in [PR 3669](https://github.com/gradio-app/gradio/pull/3669)

## Documentation Changes:

Expand Down
2 changes: 1 addition & 1 deletion client/python/gradio_client/serializing.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def deserialize(
file_name = utils.decode_base64_to_file(x["data"], dir=save_dir).name
else:
raise ValueError(
f"A FileSerializable component cannot only deserialize a string or a dict, not a: {type(x)}"
f"A FileSerializable component can only deserialize a string or a dict, not a: {type(x)}"
)
return file_name

Expand Down

0 comments on commit a46b180

Please sign in to comment.