Hugging face api key

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.

Hey @sudipta_paul,

Are you using the HuggingFace Hub Python wrapper?

Have you resolved your issue yet?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.