thedamn commited on
Commit
34e17e0
·
1 Parent(s): 315c23d

docker try commit

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -4
  2. resource.py +2 -2
Dockerfile CHANGED
@@ -8,15 +8,13 @@ COPY . /code
8
  RUN apt-get update
9
 
10
  # Install system packages
11
- RUN apt-get install -y grep git python3 python3-pip coreutils
12
 
13
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
 
15
  # Copy the rest of your application files
16
 
17
- RUN chmod -R 777 /.cache
18
-
19
-
20
 
21
  EXPOSE 7860
22
 
 
8
  RUN apt-get update
9
 
10
  # Install system packages
11
+ RUN apt-get install -y grep git python3 python3-pip coreutils curl
12
 
13
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
 
15
  # Copy the rest of your application files
16
 
17
+ curl -O https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin
 
 
18
 
19
  EXPOSE 7860
20
 
resource.py CHANGED
@@ -27,8 +27,8 @@ Answer:"""
27
 
28
  prompt = PromptTemplate(template=template, input_variables=["report"])
29
 
30
- hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/code")
31
- local_path="/code" + "/ggml-gpt4all-j-v1.3-groovy.bin"
32
  llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
33
  llm_chain = LLMChain(prompt=prompt, llm=llm)
34
 
 
27
 
28
  prompt = PromptTemplate(template=template, input_variables=["report"])
29
 
30
+ #hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/code")
31
+ local_path= os.getcwd() + "/ggml-gpt4all-j-v1.3-groovy.bin"
32
  llm = GPT4All(model=local_path,callbacks=[StreamingStdOutCallbackHandler()] )
33
  llm_chain = LLMChain(prompt=prompt, llm=llm)
34