iqrabatool commited on
Commit
0808718
·
verified ·
1 Parent(s): 30ad810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
  # Load model and tokenizer from Hugging Face
5
  model_name = "iqrabatool/finetuned_LLaMA"
6
- model = AutoModelForCausalLM.from_pretrained(model_name, token=True)
7
- tokenizer = AutoTokenizer.from_pretrained(model_name, token=True)
8
 
9
  def respond(message, system_message, max_tokens, temperature, top_p):
10
  # Generate response
 
3
 
4
  # Load model and tokenizer from Hugging Face
5
  model_name = "iqrabatool/finetuned_LLaMA"
6
+ model = AutoModelForCausalLM.from_pretrained(model_name, token=os.environ.get('HF_TOKEN'))
7
+ tokenizer = AutoTokenizer.from_pretrained(model_name, token=os.environ.get('HF_TOKEN'))
8
 
9
  def respond(message, system_message, max_tokens, temperature, top_p):
10
  # Generate response