Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import torch
|
|
5 |
import os
|
6 |
|
7 |
# Define the path where the model is located
|
8 |
-
model_directory = "
|
9 |
|
10 |
# Initialize the model and tokenizer using the correct directory path
|
11 |
tokenizer = AutoTokenizer.from_pretrained(model_directory)
|
|
|
5 |
import os
|
6 |
|
7 |
# Define the path where the model is located
|
8 |
+
model_directory = "./tiny-gpt2" # Make sure this is the correct relative or absolute path to your model folder
|
9 |
|
10 |
# Initialize the model and tokenizer using the correct directory path
|
11 |
tokenizer = AutoTokenizer.from_pretrained(model_directory)
|