diff --git a/gradio/processing_utils.py b/gradio/processing_utils.py index 1e4fba54d2..189d83191e 100644 --- a/gradio/processing_utils.py +++ b/gradio/processing_utils.py @@ -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