Spaces:
Runtime error
Runtime error
Update llm.py
Browse files
llm.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
from transformers import pipeline
|
2 |
import torch
|
3 |
|
4 |
-
device = 0 if torch.cuda.is_available() else -1
|
5 |
qa_pipeline = pipeline(
|
6 |
"text2text-generation",
|
7 |
-
model="google/flan-t5-
|
8 |
device=device
|
9 |
)
|
10 |
|
|
|
1 |
from transformers import pipeline
|
2 |
import torch
|
3 |
|
|
|
4 |
qa_pipeline = pipeline(
|
5 |
"text2text-generation",
|
6 |
+
model="google/flan-t5-base",
|
7 |
device=device
|
8 |
)
|
9 |
|