Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ logging.basicConfig(level=logging.CRITICAL)
|
|
9 |
# Cache the model and tokenizer to avoid reloading it every time
|
10 |
@st.experimental_singleton
|
11 |
def load_model():
|
12 |
-
model_name = "
|
13 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
14 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
15 |
return model, tokenizer
|
|
|
9 |
# Cache the model and tokenizer to avoid reloading it every time
|
10 |
@st.experimental_singleton
|
11 |
def load_model():
|
12 |
+
model_name = "NousResearch/Llama-2-7b-chat-hf" # Replace with your actual model name
|
13 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
14 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
15 |
return model, tokenizer
|