Update app.py
Browse files
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=
|
| 37 |
-
|
| 38 |
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
| 39 |
-
question =
|
|
|
|
| 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 |
|