Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,6 @@ nf4_config = BitsAndBytesConfig(
|
|
| 16 |
MODEL_NAME = "mistralai/Mistral-7B-Instruct-v0.2"
|
| 17 |
|
| 18 |
# Cache the model loading for speed on subsequent runs in Gradio
|
| 19 |
-
@gr.cache.clear
|
| 20 |
def load_model():
|
| 21 |
print(f"Loading model {MODEL_NAME}...")
|
| 22 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
|
|
|
| 16 |
MODEL_NAME = "mistralai/Mistral-7B-Instruct-v0.2"
|
| 17 |
|
| 18 |
# Cache the model loading for speed on subsequent runs in Gradio
|
|
|
|
| 19 |
def load_model():
|
| 20 |
print(f"Loading model {MODEL_NAME}...")
|
| 21 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|