Spaces:
Runtime error
Runtime error
Commit
·
fc7304b
1
Parent(s):
6fafc47
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ from transformers import pipeline
|
|
5 |
import gradio as gr
|
6 |
|
7 |
model = "meta-llama/Llama-2-7b-chat-hf"
|
8 |
-
|
|
|
9 |
|
10 |
SYSTEM_PROMPT = """<s>[INST] <<SYS>>
|
11 |
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
model = "meta-llama/Llama-2-7b-chat-hf"
|
8 |
+
access_token = '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'
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained(model, token=access_token)
|
10 |
|
11 |
SYSTEM_PROMPT = """<s>[INST] <<SYS>>
|
12 |
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
|