Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix downloading of models in the python binding #472

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

bjesus
Copy link
Contributor

@bjesus bjesus commented Apr 19, 2024

models come in files named like csen.student.base.v1.cd5418ba6a412fc7.tar.gz, but the directory they create when extracted are named like csen.student.base. we therefore need to remove not just the extension but everything following and including the 3rd period

models come in files named like `csen.student.base.v1.cd5418ba6a412fc7.tar.gz`, but the directory they create when extracted are named like `csen.student.base`. we therefore need to remove not just the extension but everything following and including the 3rd period
@XapaJIaMnu
Copy link
Collaborator

It's probably more robust to take the first 3 rather than remove bits from the back. Could you change your pr to do that? (and sorry this project has lost lots of maintainers)

@bjesus
Copy link
Contributor Author

bjesus commented Apr 19, 2024

Hey @XapaJIaMnu ! thanks for the quick reply. I'm pretty sure [:3] takes the first three, but perhaps I'm not understanding you correctly?

@XapaJIaMnu
Copy link
Collaborator

... I shouldn't reply to things when I'm tired..

@XapaJIaMnu XapaJIaMnu merged commit 34acd8d into browsermt:main Apr 19, 2024
4 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants