tommy24 commited on
Commit
909f50c
·
1 Parent(s): 81102f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -29,14 +29,14 @@ def func(prompt):
29
  )
30
 
31
 
32
- # Callbacks support token-wise streaming
33
- callbacks = [StreamingStdOutCallbackHandler()]
34
 
35
  # Verbose is required to pass to the callback manager
36
- llm = GPT4All(model=local_path, callbacks=callbacks, verbose=True)
37
-
38
  llm_chain = LLMChain(prompt=prompt, llm=llm)
39
- question = prompt
 
40
 
41
  return llm_chain.run(question)
42
 
 
29
  )
30
 
31
 
32
+ # # Callbacks support token-wise streaming
33
+ # callbacks = [StreamingStdOutCallbackHandler()]
34
 
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 = "What NFL team won the Super Bowl in the year Justin Bieber was born?"
39
+ llm_chain.run(question)
40
 
41
  return llm_chain.run(question)
42