Closed CViniciusSDias closed 3 months ago
src/Utils/Helpers.php:77 has the following line:
return preg_replace('#/+#', '/', implode(DIRECTORY_SEPARATOR, $paths));
This returns https:/huggingface.co/Xenova/distilbert-base-uncased-finetuned-sst-2-english/resolve/main/config.json
, with https:/
instead of https://
, which is incorrect.
Thanks for bringing it to my attention. The PR has been merged but it'll be part of the upcoming v0.3.0 release in few hours
System Info
SO: Ubuntu (under WSL) - Linux NotebookG15 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
PHP Version
8.3.6
Environment/Platform
Description
When trying to execute any simple code using TransformersPHP, I get the following error:
Reproduction
Run the following code: