Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/smooth-timers-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'modelscope_studio': patch
---

fix: update process_links.py
2 changes: 1 addition & 1 deletion backend/modelscope_studio/utils/dev/process_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def link_transformer(src: str):
or src.startswith("data")):
return src
file_path = str(utils.abspath(src))
if (not os.path.exists(file_path)):
if (not src or not os.path.exists(file_path)):
return src
return f"/file={processing_utils.move_resource_to_block_cache(file_path, block)}"

Expand Down