From 43850655d9ba0e99f661981e0ac2007d47669634 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:51:43 +0900 Subject: [PATCH] remove timestamp from path --- modules/ui_tempdir.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui_tempdir.py b/modules/ui_tempdir.py index f577fc000..dacbc7bec 100644 --- a/modules/ui_tempdir.py +++ b/modules/ui_tempdir.py @@ -85,6 +85,9 @@ def move_files_to_cache(data, block, postprocess=False): # postprocess, it means the component can display a URL # without it being served from the gradio server # This makes it so that the URL is not downloaded and speeds up event processing + + payload.path = payload.path.rsplit('?', 1)[0] + if payload.url and postprocess: temp_file_path = payload.url else: