try10
Browse files
app.py
CHANGED
@@ -13,11 +13,12 @@ Question: {question}
|
|
13 |
|
14 |
Answer:"""
|
15 |
|
|
|
16 |
|
17 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
18 |
from langchain.llms import GPT4All
|
19 |
llm = GPT4All(
|
20 |
-
model=
|
21 |
callbacks=[StreamingStdOutCallbackHandler()]
|
22 |
)
|
23 |
|
|
|
13 |
|
14 |
Answer:"""
|
15 |
|
16 |
+
local_path="ggml-gpt4all-j-v1.3-groovy"
|
17 |
|
18 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
19 |
from langchain.llms import GPT4All
|
20 |
llm = GPT4All(
|
21 |
+
model=local_path,
|
22 |
callbacks=[StreamingStdOutCallbackHandler()]
|
23 |
)
|
24 |
|