tommy24 commited on
Commit
ed9cd5d
·
1 Parent(s): 1614061

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
16
 
17
  print("DONE")
18
 
19
- def func(prompt):
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 = 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)