quantaji commited on
Commit
f1370da
1 Parent(s): 2d902f4

add some fix

Browse files
Files changed (3) hide show
  1. Dockerfile +0 -2
  2. README.md +4 -3
  3. requirements.txt +1 -0
Dockerfile CHANGED
@@ -34,8 +34,6 @@ RUN python core/init_sbt.py
34
  # add app
35
  ADD ./app.py /project/app.py
36
  EXPOSE 7860
37
- EXPOSE 8070
38
- EXPOSE 8071
39
 
40
  # add code
41
  ADD ./core/ /project/core/
 
34
  # add app
35
  ADD ./app.py /project/app.py
36
  EXPOSE 7860
 
 
37
 
38
  # add code
39
  ADD ./core/ /project/core/
README.md CHANGED
@@ -16,10 +16,11 @@ docker build --tag doc2slide -f Dockerfile .
16
  ```
17
  run in interactive mode and use gpu
18
  ```sh
19
- docker run --name test --gpus all -p 7080:8070 -p 7081:8071 -p 7860:7860 --rm -it doc2slide bash
20
  ```
21
- current version of grobid 0.7.3 have python 3.8.10 and openjdk 17. To run as a service
 
22
  ```sh
23
- docker run -d --name test --gpus all -p 7080:8070 -p 7081:8071 -p 7860:7860 --rm doc2slide
24
  ```
25
  https://shinylive.io/py/examples gives a lot of examples
 
16
  ```
17
  run in interactive mode and use gpu
18
  ```sh
19
+ docker run --name test --gpus all -p 7860:7860 --rm -it doc2slide bash
20
  ```
21
+ current version of grobid 0.7.3 have python 3.8.10 and openjdk 17.
22
+ To run as a service (in huggingface demo there is no gpu)
23
  ```sh
24
+ docker run -d --name test --gpus all -p 7860:7860 --rm doc2slide
25
  ```
26
  https://shinylive.io/py/examples gives a lot of examples
requirements.txt CHANGED
@@ -6,6 +6,7 @@ bs4
6
  lxml
7
  # for interaction with openai
8
  openai
 
9
  # for shiny
10
  anyio==3.6.2
11
  appdirs==1.4.4
 
6
  lxml
7
  # for interaction with openai
8
  openai
9
+ tiktoken
10
  # for shiny
11
  anyio==3.6.2
12
  appdirs==1.4.4