bye3222222 commit
Browse files- 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 |
-
|
37 |
-
|
38 |
-
|
39 |
-
return
|
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 |
|