mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
fixed image preproessing
This commit is contained in:
parent
00a09e19c7
commit
1a1c3e1773
@ -316,7 +316,7 @@ class ImageIn(AbstractInput):
|
|||||||
Default preprocessing method for is to convert the picture to black and white and resize to be 48x48
|
Default preprocessing method for is to convert the picture to black and white and resize to be 48x48
|
||||||
"""
|
"""
|
||||||
cast_to_type = {
|
cast_to_type = {
|
||||||
"base64": self.cast_to_base64(),
|
"base64": self.cast_to_base64,
|
||||||
"numpy": self.cast_to_numpy,
|
"numpy": self.cast_to_numpy,
|
||||||
"pillow": self.cast_to_im
|
"pillow": self.cast_to_im
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user