how can i use huggingface api key in my code while deploying a model in streamlit cloud?
my embedding is
embeddings = HuggingFaceInstructEmbeddings(model_name=“hkunlp/instructor-xl”)
and my llm is
llm = HuggingFaceHub(repo_id=“google/flan-t5-xxl”, model_kwargs={“temperature”:0.5, “max_length”:512})
there is no option to add api key of hugging face in the parameter.
Have you resolved your issue yet?