Spaces:
Build error
Build error
Update app.py
Browse files29 unmodified lines30313233343536119 unmodified lines15615715815916029 unmodified linesos.makedirs(papers_path, exist_ok=True)# Load LLaMA 2model_name = "meta-llama/Llama-2-7b-chat-hf"tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=True)model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype="auto")119 unmodified lines# Example queryquery = "short easy machine learning"results, final_response = hybrid_rag_system_with_llama(query)print("\nFinal Response Generated by LLaMA 2:")print(final_response)29 unmodified lines30313233343536119 unmodified lines15615715815916029 unmodified linesos.makedirs(papers_path, exist_ok=True)# Load LLaMA 2model_name = "meta-llama/Llama-3.2-1B-Instruct"tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=True)model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype="auto")119 unmodified lines# Example queryquery = "short easy machine learning"results, final_response = hybrid_rag_system_with_llama(query)print("\nFinal Response Generated by Llama 3:")print(final_response)
app.py+2-2