Spaces:
Runtime error
Runtime error
Commit
·
055d593
1
Parent(s):
8854b4b
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,12 @@ from transformers import AutoTokenizer
|
|
5 |
from langchain import LLMChain, HuggingFacePipeline, PromptTemplate
|
6 |
import os
|
7 |
|
8 |
-
|
9 |
|
10 |
def greet(text):
|
11 |
|
12 |
model = "meta-llama/Llama-2-7b-chat-hf"
|
13 |
-
tokenizer = AutoTokenizer.from_pretrained(model, token=
|
14 |
|
15 |
pipeline = transformers.pipeline(
|
16 |
"text-generation",
|
|
|
5 |
from langchain import LLMChain, HuggingFacePipeline, PromptTemplate
|
6 |
import os
|
7 |
|
8 |
+
access_token = os.getenv("Llama2")
|
9 |
|
10 |
def greet(text):
|
11 |
|
12 |
model = "meta-llama/Llama-2-7b-chat-hf"
|
13 |
+
tokenizer = AutoTokenizer.from_pretrained(model, token=access_token)
|
14 |
|
15 |
pipeline = transformers.pipeline(
|
16 |
"text-generation",
|