Spaces:
Runtime error
Runtime error
change to Hugging Face Model
Browse files- inference.py +2 -2
inference.py
CHANGED
|
@@ -23,11 +23,11 @@ def load_model(
|
|
| 23 |
}
|
| 24 |
|
| 25 |
# Load the tokenizer
|
| 26 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 27 |
|
| 28 |
# Load the model
|
| 29 |
model = AutoModelForCausalLM.from_pretrained(
|
| 30 |
-
pretrained_model_name_or_path=
|
| 31 |
**kwargs
|
| 32 |
)
|
| 33 |
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
# Load the tokenizer
|
| 26 |
+
tokenizer = AutoTokenizer.from_pretrained("CodeTranslatorLLM/LinguistLLM")
|
| 27 |
|
| 28 |
# Load the model
|
| 29 |
model = AutoModelForCausalLM.from_pretrained(
|
| 30 |
+
pretrained_model_name_or_path="CodeTranslatorLLM/LinguistLLM",
|
| 31 |
**kwargs
|
| 32 |
)
|
| 33 |
|