Spaces:
Runtime error
Runtime error
tokenizer
Browse files
app.py
CHANGED
|
@@ -5,13 +5,13 @@ import gradio as gr
|
|
| 5 |
# Global variables for cached model abdelac/tinyllama
|
| 6 |
_tokenizer = None
|
| 7 |
_model = None
|
| 8 |
-
|
| 9 |
def load_model_once():
|
| 10 |
"""Load model on first use"""
|
| 11 |
global _tokenizer, _model
|
| 12 |
if _model is None:
|
| 13 |
MODEL_ID = "mistralai/Devstral-Small-2-24B-Instruct-2512"
|
| 14 |
-
print("Loading mistralai New model for the first time...")
|
| 15 |
_tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
| 16 |
_model = AutoModelForCausalLM.from_pretrained(
|
| 17 |
MODEL_ID,
|
|
|
|
| 5 |
# Global variables for cached model abdelac/tinyllama
|
| 6 |
_tokenizer = None
|
| 7 |
_model = None
|
| 8 |
+
# bein model
|
| 9 |
def load_model_once():
|
| 10 |
"""Load model on first use"""
|
| 11 |
global _tokenizer, _model
|
| 12 |
if _model is None:
|
| 13 |
MODEL_ID = "mistralai/Devstral-Small-2-24B-Instruct-2512"
|
| 14 |
+
print("Loading mistralai New model for the first time.;dldldldlldld..")
|
| 15 |
_tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
| 16 |
_model = AutoModelForCausalLM.from_pretrained(
|
| 17 |
MODEL_ID,
|