Spaces:
Sleeping
Sleeping
switch model to VietAI/vit5-base-vietnews-summarization
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import torch
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# Load model và tokenizer
|
9 |
-
model_name = "VietAI/vit5-base"
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
11 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# Load model và tokenizer
|
9 |
+
model_name = "VietAI/vit5-base-vietnews-summarization"
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
11 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|