datacipen commited on
Commit
a92515d
1 Parent(s): 98b7a10

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -437,7 +437,9 @@ async def start():
437
  # temperature=1.0,
438
  # streaming=True
439
  #)
 
440
  from langchain_huggingface.llms import HuggingFacePipeline
 
441
  model = HuggingFacePipeline.from_model_id(
442
  model_id="mistralai/Mistral-Small-Instruct-2409",
443
  task="text-generation",
 
437
  # temperature=1.0,
438
  # streaming=True
439
  #)
440
+ from huggingface_hub import login
441
  from langchain_huggingface.llms import HuggingFacePipeline
442
+ login(token=os.environ['HUGGINGFACEHUB_API_TOKEN'])
443
  model = HuggingFacePipeline.from_model_id(
444
  model_id="mistralai/Mistral-Small-Instruct-2409",
445
  task="text-generation",