Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,12 @@ import random
|
|
39 |
|
40 |
hf_token = os.getenv("hf_token")
|
41 |
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
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():
|