Chris4K commited on
Commit
efa7515
·
verified ·
1 Parent(s): 4db92e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -39,7 +39,12 @@ import random
39
 
40
  hf_token = os.getenv("hf_token")
41
 
42
- llm = HuggingFacePipeline(pipeline(model="meta-llama/Llama-3.2-1B", token=hf_token))
 
 
 
 
 
43
 
44
  # NLTK Resource Download
45
  def download_nltk_resources():
 
39
 
40
  hf_token = os.getenv("hf_token")
41
 
42
+ model_pipeline = pipeline(
43
+ model="meta-llama/Llama-3.2-1B",
44
+ use_auth_token=hf_token
45
+ )
46
+
47
+ llm = HuggingFacePipeline(pipeline=model_pipeline)
48
 
49
  # NLTK Resource Download
50
  def download_nltk_resources():