Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
device = 0 if torch.cuda.is_available() else -1
|
| 6 |
-
pipe = pipeline("text-generation", model="
|
| 7 |
|
| 8 |
|
| 9 |
def responder(prompt):
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
device = 0 if torch.cuda.is_available() else -1
|
| 6 |
+
pipe = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.2", device=device)
|
| 7 |
|
| 8 |
|
| 9 |
def responder(prompt):
|