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