remove timestamp from path

This commit is contained in:
w-e-w 2024-02-05 17:51:43 +09:00
parent 28899117da
commit 43850655d9

View File

@ -85,6 +85,9 @@ def move_files_to_cache(data, block, postprocess=False):
# postprocess, it means the component can display a URL # postprocess, it means the component can display a URL
# without it being served from the gradio server # without it being served from the gradio server
# This makes it so that the URL is not downloaded and speeds up event processing # 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: if payload.url and postprocess:
temp_file_path = payload.url temp_file_path = payload.url
else: else: