Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
|
5 |
# Load model and tokenizer
|
6 |
-
model_name = "llama-2-7b-chat"
|
7 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
chat_pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
|
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
|
5 |
# Load model and tokenizer
|
6 |
+
model_name = "meta-llama/Llama-2-7b-chat-hf"
|
7 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
chat_pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
|