Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,7 @@ from transformers import AutoTokenizer, AutoModel
|
|
7 |
model_name = "teknium/OpenHermes-2.5-Mistral-7B"
|
8 |
token = os.environ['hf_token']
|
9 |
|
10 |
-
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
12 |
|
13 |
|
14 |
system_prompt = '''You are given an input text for a chat interface. Propose auto-completion to the text. You have several roles:
|
|
|
7 |
model_name = "teknium/OpenHermes-2.5-Mistral-7B"
|
8 |
token = os.environ['hf_token']
|
9 |
|
10 |
+
pipe = pipeline("text-generation", model=model_name, device="cuda")
|
|
|
11 |
|
12 |
|
13 |
system_prompt = '''You are given an input text for a chat interface. Propose auto-completion to the text. You have several roles:
|