mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +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):
|
||||
file_obj = tempfile.NamedTemporaryFile()
|
||||
file_obj.write(decode_base64_to_binary(encoding))
|
||||
file_obj.flush()
|
||||
return file_obj
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user