Spaces:
Build error
Build error
Halo Master
commited on
Commit
•
f0eb52a
1
Parent(s):
7721fc2
large model
Browse files
app.py
CHANGED
@@ -9,8 +9,13 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
9 |
|
10 |
# tokenizer = T5Tokenizer.from_pretrained("ClueAI/PromptCLUE-base")
|
11 |
# model = T5ForConditionalGeneration.from_pretrained("ClueAI/PromptCLUE-base")
|
12 |
-
tokenizer = T5Tokenizer.from_pretrained("ClueAI/PromptCLUE-base-v1-5")
|
13 |
-
model = T5ForConditionalGeneration.from_pretrained("ClueAI/PromptCLUE-base-v1-5")
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
device = torch.device('cpu')
|
16 |
model.to(device)
|
|
|
9 |
|
10 |
# tokenizer = T5Tokenizer.from_pretrained("ClueAI/PromptCLUE-base")
|
11 |
# model = T5ForConditionalGeneration.from_pretrained("ClueAI/PromptCLUE-base")
|
12 |
+
# tokenizer = T5Tokenizer.from_pretrained("ClueAI/PromptCLUE-base-v1-5")
|
13 |
+
# model = T5ForConditionalGeneration.from_pretrained("ClueAI/PromptCLUE-base-v1-5")
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
tokenizer = T5Tokenizer.from_pretrained("ClueAI/ChatYuan-large-v1")
|
18 |
+
model = T5ForConditionalGeneration.from_pretrained("ClueAI/ChatYuan-large-v1")
|
19 |
|
20 |
device = torch.device('cpu')
|
21 |
model.to(device)
|