Spaces:
Runtime error
Runtime error
Update app.py
Browse files14 unmodified lines1516171819202114 unmodified linesraise ValueError("HUGGINGFACE_API_TOKEN environment variable is not set")# Load model and tokenizer from Hugging Face Model Hub with authenticationmodel_name = "meta-llama/Meta-Llama-3-70B-Instruct"tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=api_token)model = AutoModelForCausalLM.from_pretrained(model_name, use_auth_token=api_token)14 unmodified lines1516171819202114 unmodified linesraise ValueError("HUGGINGFACE_API_TOKEN environment variable is not set")# Load model and tokenizer from Hugging Face Model Hub with authenticationmodel_name = "meta-llama/Meta-Llama-3-8B"tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=api_token)model = AutoModelForCausalLM.from_pretrained(model_name, use_auth_token=api_token)
app.py+1-1