Open harshakhmk opened 5 months ago
Using the above code in my sample rust crate which is built as a shared library and used in Android app, app is crashing
@Narsil any leads on this would be highly helpful
Here is the rough flow of what's happening when you call Api::new()
:
So what's happening is:
HF_HOME
, otherwise it defaults to ~/.cache/huggingface/hub
for the cache directory.hub
) to look for a file named token
, thus default path is ~/.cache/huggingface/token
.token
file check is part of calling from_cache()
internally to create the API builder struct, which itself calls cache.token()
on that path value from step 1. When this does not exist you get the info log you encountered.cache.token()
call.That shouldn't be causing a crash though.
I am using fastembed-rs package, to create embeddings for text input While I am running my application as a shared library on Android, it is giving below error