Update app.py
Browse files
app.py
CHANGED
|
@@ -3,15 +3,17 @@ from langchain import PromptTemplate, LLMChain
|
|
| 3 |
from langchain.llms import GPT4All
|
| 4 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
| 5 |
|
|
|
|
| 6 |
import requests
|
| 7 |
|
| 8 |
url = "https://huggingface.co/TheBloke/Nous-Hermes-13B-GGML/resolve/main/nous-hermes-13b.ggmlv3.q4_0.bin"
|
| 9 |
|
| 10 |
response = requests.get(url)
|
| 11 |
|
| 12 |
-
with open("nous-hermes-13b.ggmlv3.q4_0.bin","
|
| 13 |
f.write(response.content)
|
| 14 |
|
|
|
|
| 15 |
print("DONE")
|
| 16 |
|
| 17 |
def func(prompt):
|
|
|
|
| 3 |
from langchain.llms import GPT4All
|
| 4 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
| 5 |
|
| 6 |
+
|
| 7 |
import requests
|
| 8 |
|
| 9 |
url = "https://huggingface.co/TheBloke/Nous-Hermes-13B-GGML/resolve/main/nous-hermes-13b.ggmlv3.q4_0.bin"
|
| 10 |
|
| 11 |
response = requests.get(url)
|
| 12 |
|
| 13 |
+
with open("nous-hermes-13b.ggmlv3.q4_0.bin", "wb") as f:
|
| 14 |
f.write(response.content)
|
| 15 |
|
| 16 |
+
|
| 17 |
print("DONE")
|
| 18 |
|
| 19 |
def func(prompt):
|