Spaces:
Sleeping
Sleeping
Switch to hosted model on Hugging Face
Browse files- app/app.py +2 -2
app/app.py
CHANGED
|
@@ -5,8 +5,8 @@ import torch
|
|
| 5 |
# Load model and tokenizer
|
| 6 |
@st.cache_resource
|
| 7 |
def load_model():
|
| 8 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
| 9 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 10 |
return model, tokenizer
|
| 11 |
|
| 12 |
model, tokenizer = load_model()
|
|
|
|
| 5 |
# Load model and tokenizer
|
| 6 |
@st.cache_resource
|
| 7 |
def load_model():
|
| 8 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("Tuathe/codementor-flan")
|
| 9 |
+
tokenizer = AutoTokenizer.from_pretrained("Tuathe/codementor-flan")
|
| 10 |
return model, tokenizer
|
| 11 |
|
| 12 |
model, tokenizer = load_model()
|