Running without internet
Firstly, thank you so much for creating this tool. It's really helpful!
I wanted to know if it is supposed to work as is if I clone the repo and launch the index.html in a browser locally without internet?
I tried the above and nothing loads as of now.
It'd be great if you could list the steps to make it work. Thanks
This demo loads the tokenizer.json and tokenizer_config.json from the Hugging Face Hub when the user selects it, so yes, for the first run you will need internet connection.
If you want to get it working 100% offline, you can download the necessary files first, and place them in your local model folder. See here for more information.
You also need to remove this line of code, which ignores the local file check.
For example, for Xenova/gpt-4
, you just need to download the tokenizer.json and tokenizer_config.json files.