Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ token_model = "indolem/indobertweet-base-uncased"
|
|
7 |
tokenizer = BertTokenizer.from_pretrained(token_model)
|
8 |
|
9 |
# Define the model directory where your config.json and pytorch_model.bin are located
|
10 |
-
model_directory = "
|
11 |
|
12 |
# Load the model
|
13 |
# If your weights are named differently, ensure the file is named pytorch_model.bin or modify the loading method
|
|
|
7 |
tokenizer = BertTokenizer.from_pretrained(token_model)
|
8 |
|
9 |
# Define the model directory where your config.json and pytorch_model.bin are located
|
10 |
+
model_directory = "pretrained_arief.model" # Make sure this directory has config.json and pytorch_model.bin
|
11 |
|
12 |
# Load the model
|
13 |
# If your weights are named differently, ensure the file is named pytorch_model.bin or modify the loading method
|