Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from transformers import StoppingCriteria, StoppingCriteriaList, TextIteratorStr
|
|
5 |
from threading import Thread
|
6 |
|
7 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
9 |
-
model = AutoModelForCausalLM.from_pretrained("
|
10 |
|
11 |
# using CUDA for an optimal experience
|
12 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
5 |
from threading import Thread
|
6 |
|
7 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
|
9 |
+
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
|
10 |
|
11 |
# using CUDA for an optimal experience
|
12 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|