Update modelscope/hub/constants.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Yunlin Mao
2025-11-03 10:54:09 +08:00
committed by GitHub
parent d9e0fb7221
commit 70b935183e

View File

@@ -125,9 +125,9 @@ class SortKey(object):
LAST_MODIFIED = 'last_modified'
SortKeyMap = {
SortKey.DEFAULT: SortKey.DEFAULT,
SortKey.DOWNLOADS: SortKey.DOWNLOADS,
SortKey.LIKES: SortKey.LIKES,
SortKey.LAST_MODIFIED: SortKey.LAST_MODIFIED
VALID_SORT_KEYS = {
SortKey.DEFAULT,
SortKey.DOWNLOADS,
SortKey.LIKES,
SortKey.LAST_MODIFIED,
}