Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,8 @@ from util import load_model
|
|
4 |
|
5 |
cp_aug = 'minnehwg/finetune-newwiki-summarization-ver-augmented'
|
6 |
|
7 |
-
|
8 |
-
|
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.")
|