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

Filter whitespaces in downloader fields in model tab #6518

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

mefich
Copy link
Contributor

@mefich mefich commented Nov 6, 2024

Sometimes users accidentally contaminate downloader fields in Model tab with whitespaces or newlines and it prevents from downloading models. As of now such contamination creates broken download links and it returns errors from HF and it can be confusing for a user since it's hard to notice such symbols in the text fields.
This PR adds strip() to "repo_id" and "specific_file" variables in the downloader to filter out such symbols.

Checklist:

Added strip to repo_id and specific_file (for GGUF models).
Fixes downloading when model/file copied with whitespace symbols.
@oobabooga oobabooga merged commit 1c937da into oobabooga:dev Nov 18, 2024
cyberfox pushed a commit to cyberfox/text-generation-webui that referenced this pull request Dec 6, 2024
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