Spaces:
Runtime error
Runtime error
Commit
·
fb7f34e
1
Parent(s):
279d2d2
Update app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,14 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
2 |
|
3 |
|
4 |
|
5 |
-
checkpoint = "
|
6 |
|
7 |
#load model from drive
|
8 |
-
|
9 |
-
|
10 |
|
11 |
#tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
12 |
-
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
|
13 |
|
14 |
|
15 |
def summarize(word):
|
|
|
2 |
|
3 |
|
4 |
|
5 |
+
checkpoint = "myt5.sav"
|
6 |
|
7 |
#load model from drive
|
8 |
+
with open(checkpoint, "rb") as f:
|
9 |
+
t5 = pickle.load(f)
|
10 |
|
11 |
#tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
12 |
+
#model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
|
13 |
|
14 |
|
15 |
def summarize(word):
|