Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
|
16 |
|
17 |
print("DONE")
|
18 |
|
19 |
-
def func(
|
20 |
|
21 |
template = """Question: {question}
|
22 |
|
@@ -35,7 +35,7 @@ def func(prompt):
|
|
35 |
# Verbose is required to pass to the callback manager
|
36 |
llm = GPT4All(model="./nous-hermes-13b.ggmlv3.q4_0.bin")
|
37 |
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
38 |
-
question =
|
39 |
llm_chain.run(question)
|
40 |
|
41 |
return llm_chain.run(question)
|
|
|
16 |
|
17 |
print("DONE")
|
18 |
|
19 |
+
def func(user):
|
20 |
|
21 |
template = """Question: {question}
|
22 |
|
|
|
35 |
# Verbose is required to pass to the callback manager
|
36 |
llm = GPT4All(model="./nous-hermes-13b.ggmlv3.q4_0.bin")
|
37 |
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
38 |
+
question = user
|
39 |
llm_chain.run(question)
|
40 |
|
41 |
return llm_chain.run(question)
|