Skip to content

[PullRequest] Adding Yandex.Disk download support #6666

@blacky-i

Description

@blacky-i

Added test and yandex.disk url resolution

To download model weights hosted from yandex.disk use following snippet to create final url:

from urllib.parse import urlencode

base_url = 'https://cloud-api.yandex.net/v1/disk/public/resources/download?'
public_key = 'https://disk.yandex.ru/d/pWEKt6D3qi3-aw'  # Public link to url

# Encoding url to create final url
final_url = base_url + urlencode(dict(public_key=public_key))
print(final_rul)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions