try6
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
from langchain import PromptTemplate, LLMChain
|
2 |
from gpt4all import GPT4All
|
|
|
3 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
4 |
import subprocess as sp
|
5 |
-
sp.
|
6 |
template = """
|
7 |
You are a friendly chatbot assistant that responds in a conversational
|
8 |
manner to users questions. Keep the answers short, unless specifically
|
@@ -12,7 +13,7 @@ Question: {question}
|
|
12 |
|
13 |
Answer:"""
|
14 |
|
15 |
-
|
16 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
17 |
from langchain.llms import GPT4All
|
18 |
llm = GPT4All(
|
|
|
1 |
from langchain import PromptTemplate, LLMChain
|
2 |
from gpt4all import GPT4All
|
3 |
+
gpt=GPT4All("ggml-gpt4all-j-v1.3-groovy")
|
4 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
5 |
import subprocess as sp
|
6 |
+
sp.check_output("ls")
|
7 |
template = """
|
8 |
You are a friendly chatbot assistant that responds in a conversational
|
9 |
manner to users questions. Keep the answers short, unless specifically
|
|
|
13 |
|
14 |
Answer:"""
|
15 |
|
16 |
+
|
17 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
18 |
from langchain.llms import GPT4All
|
19 |
llm = GPT4All(
|