diff --git a/api/__init__.py b/api/__init__.py index ab532b9..07231b8 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -116,7 +116,7 @@ def predict(**args): with tempfile.TemporaryDirectory() as tmpdir: for f in [args["files"]]: shutil.copy( - f.filename, tmpdir + "/" + f.original_filename + f.filename, tmpdir + "/" + os.path.basename(f.original_filename) ) args["files"] = [