thedamn commited on
Commit
a2be3db
·
1 Parent(s): 0dbd0a0

bye3222222 commit

Browse files
Files changed (1) hide show
  1. resource.py +4 -4
resource.py CHANGED
@@ -33,10 +33,10 @@ def langu():
33
  prompt = PromptTemplate(template=template, input_variables=["question"])
34
 
35
  hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/tmp")
36
- #local_path= "/tmp/ggml-gpt4all-j-v1.3-groovy.bin"
37
- #llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
38
- #llm_chain = LLMChain(prompt=prompt, llm=llm)
39
- return 0
40
 
41
 
42
 
 
33
  prompt = PromptTemplate(template=template, input_variables=["question"])
34
 
35
  hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/tmp")
36
+ local_path= "/home/user/.cache/huggingface/hub/models--dnato--ggml-gpt4all-j-v1.3-groovy.bin/blobs/3b2fd7cca97284467de0be8f638925f40cbff4c70a2e10ba1094f83bfa24d86b"
37
+ llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
38
+ llm_chain = LLMChain(prompt=prompt, llm=llm)
39
+ return llm_chain
40
 
41
 
42