Spaces:
Build error
Build error
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files31 unmodified lines323334353536373831 unmodified lineselse: # Initialize the model and tokenizer using the API key try: model_name = "llama3-70b-8192" # Replace with the correct model name if needed model_name = "llama-3.1-8b-instant" # Replace with the correct model name if needed model = AutoModelForCausalLM.from_pretrained(model_name, use_auth_token=hf_api_key) tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=hf_api_key) llm_pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)app.py+1-1