Spaces:
Build error
Build error
Update app.py
#1
by
LMI
- opened
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
import torch
|
3 |
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
5 |
-
model = AutoModelForCausalLM.from_pretrained("
|
6 |
|
7 |
def predict(input, history=[]):
|
8 |
# tokenize the new input sentence
|
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
import torch
|
3 |
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-neox-20b")
|
6 |
|
7 |
def predict(input, history=[]):
|
8 |
# tokenize the new input sentence
|