Kevin Fink
commited on
Commit
·
2ba9bb8
1
Parent(s):
e4e682f
dev
Browse files
app.py
CHANGED
@@ -249,7 +249,7 @@ def predict(text):
|
|
249 |
config = AutoConfig.from_pretrained("shorecode/t5-efficient-tiny-nh8-summarizer")
|
250 |
model = AutoModelForSeq2SeqLM.from_config(config)
|
251 |
#initialize_weights(model)
|
252 |
-
tokenizer = AutoTokenizer.from_pretrained('shorecode/t5-efficient-tiny-nh8
|
253 |
inputs = tokenizer(text, return_tensors="pt", padding='max_length', max_length=512, truncation=True)
|
254 |
|
255 |
# Move model and inputs to GPU if available
|
|
|
249 |
config = AutoConfig.from_pretrained("shorecode/t5-efficient-tiny-nh8-summarizer")
|
250 |
model = AutoModelForSeq2SeqLM.from_config(config)
|
251 |
#initialize_weights(model)
|
252 |
+
tokenizer = AutoTokenizer.from_pretrained('shorecode/t5-efficient-tiny-nh8')
|
253 |
inputs = tokenizer(text, return_tensors="pt", padding='max_length', max_length=512, truncation=True)
|
254 |
|
255 |
# Move model and inputs to GPU if available
|