thedamn commited on
Commit
85358a8
·
1 Parent(s): ca5889d

good night last commit

Browse files
Files changed (1) hide show
  1. resource.py +1 -1
resource.py CHANGED
@@ -31,7 +31,7 @@ def langu():
31
  prompt = PromptTemplate(template=template, input_variables=["question"])
32
 
33
  hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir=".")
34
- local_path= os.getcwd() + "/ggml-gpt4all-j-v1.3-groovy.bin"
35
  llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
36
  llm_chain = LLMChain(prompt=prompt, llm=llm)
37
  return llm_chain
 
31
  prompt = PromptTemplate(template=template, input_variables=["question"])
32
 
33
  hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir=".")
34
+ local_path= "/home/user/app/ggml-gpt4all-j-v1.3-groovy.bin"
35
  llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
36
  llm_chain = LLMChain(prompt=prompt, llm=llm)
37
  return llm_chain