bye32222 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 |
-
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
|
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= "/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 |
|