mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
Nit in ValueError (#3669)
* Nit in ValueError * CHANGELOG --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
This commit is contained in:
parent
becada8795
commit
a46b1806bb
@ -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:
|
||||
|
||||
|
@ -162,7 +162,7 @@ class FileSerializable(Serializable):
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user