minnehwg commited on
Commit
6f8d347
·
verified ·
1 Parent(s): b4cb56b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -4,12 +4,8 @@ from util import load_model
4
 
5
  cp_aug = 'minnehwg/finetune-newwiki-summarization-ver-augmented'
6
 
7
- def get_model(cp):
8
- checkpoint = cp
9
- tokenizer, model = load_model(checkpoint)
10
- return tokenizer, model
11
-
12
- tokenizer, model = get_model(cp_aug)
13
 
14
  with gr.Blocks() as demo:
15
  gr.Markdown("Start typing below and then click **Run** to see the output.")
 
4
 
5
  cp_aug = 'minnehwg/finetune-newwiki-summarization-ver-augmented'
6
 
7
+ tokenizer = AutoTokenizer.from_pretrained("VietAI/vit5-base")
8
+ model = AutoModelForSeq2SeqLM.from_pretrained(cp_aug)
 
 
 
 
9
 
10
  with gr.Blocks() as demo:
11
  gr.Markdown("Start typing below and then click **Run** to see the output.")