No Connection

#200
by SumitSakarkar - opened

My vs code gives me this error for the below code.

Code :
from src.utils.helper_functions import extract_text_from_docx as extract
from src.utils.helper_functions import generate_resume_llama

def main():
file = "data/resume.docx"
text = extract(docx_file=file)
file = "data/job_description.docx"
JD = extract(docx_file=file)

tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B",token = "TOKEN*******")
model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B",token = "TOKEN******")

# Generate updated resume based on the job description
generated_resume = generate_resume_llama(text, JD, model, tokenizer)

ERROR :
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like meta-llama/Meta-Llama-3-8B is not the path to a directory containing a file named config.json.

HELP NEEDED.

Scavenged many places.
Token type : finegrained, write
Tried both, but nothing worked.

Sign up or log in to comment