Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ from transformers import (
|
|
8 |
AutoModelForSeq2SeqLM,
|
9 |
)
|
10 |
import torch
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
|
17 |
|
|
|
8 |
AutoModelForSeq2SeqLM,
|
9 |
)
|
10 |
import torch
|
11 |
+
model_folder = "zjunlp/chatcell-small"
|
12 |
+
tokenizer = AutoTokenizer.from_pretrained(model_folder)
|
13 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_folder)
|
14 |
+
model.eval()
|
15 |
|
16 |
|
17 |
|