Spaces:
Sleeping
Sleeping
h commit
Browse files- resource.py +2 -2
resource.py
CHANGED
@@ -27,8 +27,8 @@ Answer:"""
|
|
27 |
|
28 |
prompt = PromptTemplate(template=template, input_variables=["report"])
|
29 |
|
30 |
-
hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/
|
31 |
-
local_path="/
|
32 |
llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
|
33 |
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
34 |
|
|
|
27 |
|
28 |
prompt = PromptTemplate(template=template, input_variables=["report"])
|
29 |
|
30 |
+
hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/code")
|
31 |
+
local_path="/code" + "/ggml-gpt4all-j-v1.3-groovy.bin"
|
32 |
llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
|
33 |
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
34 |
|