Spaces:
Runtime error
Runtime error
Update app.py
Browse files14 unmodified lines151617181819202148 unmodified lines707172737374757677787914 unmodified lines raise 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.1-70B-Instruct"model_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)
48 unmodified lines inputs="text", outputs="text", title="Meta-Llama Chatbot", description="A chatbot powered by the Meta-Llama-3.1-70B-Instruct model." description="A chatbot powered by the Meta-Llama-3-70B-Instruct model.")
# Launch the interfaceif __name__ == "__main__": iface.launch()
app.py+2-3