OuroborosM commited on
Commit
06105c0
·
1 Parent(s): 3f28a81

update docker

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. app.py +2 -2
Dockerfile CHANGED
@@ -18,6 +18,8 @@ RUN wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf - \
18
  ENV SSL_CERT_DIR=/usr/lib/ssl/certs
19
  ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
20
 
 
 
21
  RUN apt-get update
22
  RUN apt-get install build-essential libssl-dev ca-certificates libasound2 wget
23
  RUN apt-get install -y ffmpeg
 
18
  ENV SSL_CERT_DIR=/usr/lib/ssl/certs
19
  ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
20
 
21
+ RUN mkdir -p /home/user/.cache/torch && chmod -R u+rwx /home/user/.cache/torch
22
+
23
  RUN apt-get update
24
  RUN apt-get install build-essential libssl-dev ca-certificates libasound2 wget
25
  RUN apt-get install -y ffmpeg
app.py CHANGED
@@ -1346,8 +1346,8 @@ if __name__ == '__main__':
1346
  # QAQuery("what is COFOR ?")
1347
  # CreatDb_P()
1348
  # QAQuery_p("what is GST ?")
1349
- question = "what is PDP?"
1350
- output = asyncio.run(start_playwright(question))
1351
  if SysLock == "1":
1352
  demo.queue().launch(auth=(username, password), server_name="0.0.0.0", server_port=7860)
1353
  else:
 
1346
  # QAQuery("what is COFOR ?")
1347
  # CreatDb_P()
1348
  # QAQuery_p("what is GST ?")
1349
+ # question = "what is PDP?"
1350
+ # output = asyncio.run(start_playwright(question))
1351
  if SysLock == "1":
1352
  demo.queue().launch(auth=(username, password), server_name="0.0.0.0", server_port=7860)
1353
  else: