Hunzla commited on
Commit
ce3949f
1 Parent(s): 46de342

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)