FlameF0X commited on
Commit
1261056
·
verified ·
1 Parent(s): 160d538

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import torch
6
  app = FastAPI()
7
 
8
  # Load model and tokenizer once at startup
9
- model_name = "./gpt2" # ← path to the local directory
10
  tokenizer = AutoTokenizer.from_pretrained(model_name)
11
  model = AutoModelForCausalLM.from_pretrained(model_name)
12
 
 
6
  app = FastAPI()
7
 
8
  # Load model and tokenizer once at startup
9
+ model_name = "./tiny-gpt2" # ← path to the local directory
10
  tokenizer = AutoTokenizer.from_pretrained(model_name)
11
  model = AutoModelForCausalLM.from_pretrained(model_name)
12