Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ model_name = "shenzye46/SmolLM-135M-fine-tuned-recepie" # Replace with your mod
|
|
6 |
tokenizer_name = "HuggingFaceTB/SmolLM-135M"
|
7 |
|
8 |
def load_model_and_tokenizer():
|
9 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
10 |
-
model = AutoModelForCausalLM.from_pretrained(
|
11 |
return tokenizer, model
|
12 |
|
13 |
tokenizer, model = load_model_and_tokenizer()
|
|
|
6 |
tokenizer_name = "HuggingFaceTB/SmolLM-135M"
|
7 |
|
8 |
def load_model_and_tokenizer():
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name)
|
10 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
11 |
return tokenizer, model
|
12 |
|
13 |
tokenizer, model = load_model_and_tokenizer()
|