tommy24 commited on
Commit
1e2ba54
1 Parent(s): 905ea65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -3,6 +3,16 @@ from langchain import PromptTemplate, LLMChain
3
  from langchain.llms import GPT4All
4
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
5
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  def func(prompt):
8
 
 
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",w) as f:
13
+ f.write(response.content)
14
+
15
+ print("DONE")
16
 
17
  def func(prompt):
18