mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
small file upload fix
This commit is contained in:
parent
6942d2e44d
commit
007f324425
@ -75,6 +75,7 @@ def decode_base64_to_binary(encoding):
|
|||||||
def decode_base64_to_file(encoding):
|
def decode_base64_to_file(encoding):
|
||||||
file_obj = tempfile.NamedTemporaryFile()
|
file_obj = tempfile.NamedTemporaryFile()
|
||||||
file_obj.write(decode_base64_to_binary(encoding))
|
file_obj.write(decode_base64_to_binary(encoding))
|
||||||
|
file_obj.flush()
|
||||||
return file_obj
|
return file_obj
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user