Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
3 |
import time
|
4 |
|
5 |
# Load model and tokenizer
|
6 |
-
@gr.cache_resource
|
7 |
def load_model():
|
8 |
tokenizer = AutoTokenizer.from_pretrained("VietAI/vit5-base-vietnews-summarization")
|
9 |
model = AutoModelForSeq2SeqLM.from_pretrained("VietAI/vit5-base-vietnews-summarization")
|
|
|
3 |
import time
|
4 |
|
5 |
# Load model and tokenizer
|
|
|
6 |
def load_model():
|
7 |
tokenizer = AutoTokenizer.from_pretrained("VietAI/vit5-base-vietnews-summarization")
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained("VietAI/vit5-base-vietnews-summarization")
|