vanhai123 commited on
Commit
ca82c5a
·
verified ·
1 Parent(s): e1e4d83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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")