fixed wrong model name (lacked *-cased suffix)
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def load_model_once():
|
|
| 12 |
global model, tokenizer
|
| 13 |
if model is None:
|
| 14 |
# Load base model
|
| 15 |
-
base_model_name = "cahya/t5-base-indonesian-summarization"
|
| 16 |
tokenizer = T5Tokenizer.from_pretrained(base_model_name)
|
| 17 |
base_model = T5ForConditionalGeneration.from_pretrained(
|
| 18 |
base_model_name,
|
|
|
|
| 12 |
global model, tokenizer
|
| 13 |
if model is None:
|
| 14 |
# Load base model
|
| 15 |
+
base_model_name = "cahya/t5-base-indonesian-summarization-cased"
|
| 16 |
tokenizer = T5Tokenizer.from_pretrained(base_model_name)
|
| 17 |
base_model = T5ForConditionalGeneration.from_pretrained(
|
| 18 |
base_model_name,
|