Spaces:
Running
Running
Upload 4 files
Browse files- Dockerfile +4 -1
- index.md +3 -2
- pyproject.toml +2 -0
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use the official Python 3.9 image
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Set the working directory to /code
|
5 |
WORKDIR /code
|
@@ -18,6 +18,9 @@ COPY ./index.md /code/index.md
|
|
18 |
|
19 |
# Install requirements.txt
|
20 |
RUN pip install poetry
|
|
|
|
|
|
|
21 |
RUN poetry install
|
22 |
|
23 |
# Set up a new user named "user" with user ID 1000
|
|
|
1 |
# Use the official Python 3.9 image
|
2 |
+
FROM python:3.10
|
3 |
|
4 |
# Set the working directory to /code
|
5 |
WORKDIR /code
|
|
|
18 |
|
19 |
# Install requirements.txt
|
20 |
RUN pip install poetry
|
21 |
+
|
22 |
+
ENV POETRY_VIRTUALENVS_CREATE=false
|
23 |
+
|
24 |
RUN poetry install
|
25 |
|
26 |
# Set up a new user named "user" with user ID 1000
|
index.md
CHANGED
@@ -9,7 +9,8 @@ A live version can be found here: https://huggingface.co/spaces/presidio/presidi
|
|
9 |
2. Install dependencies (preferably in a virtual environment)
|
10 |
|
11 |
```sh
|
12 |
-
pip install
|
|
|
13 |
```
|
14 |
> Note: This would install additional packages such as `transformers` and `flair` which are not mandatory for using Presidio.
|
15 |
|
@@ -17,7 +18,7 @@ pip install -r requirements
|
|
17 |
4. Start the app:
|
18 |
|
19 |
```sh
|
20 |
-
streamlit run presidio_streamlit.py
|
21 |
```
|
22 |
|
23 |
5. Consider adding an `.env` file with the following environment variables, for further customizability:
|
|
|
9 |
2. Install dependencies (preferably in a virtual environment)
|
10 |
|
11 |
```sh
|
12 |
+
pip install poetry
|
13 |
+
poetry install
|
14 |
```
|
15 |
> Note: This would install additional packages such as `transformers` and `flair` which are not mandatory for using Presidio.
|
16 |
|
|
|
18 |
4. Start the app:
|
19 |
|
20 |
```sh
|
21 |
+
poetry run streamlit run presidio_streamlit.py
|
22 |
```
|
23 |
|
24 |
5. Consider adding an `.env` file with the following environment variables, for further customizability:
|
pyproject.toml
CHANGED
@@ -23,3 +23,5 @@ en_core_web_lg = {url = "https://github.com/explosion/spacy-models/releases/down
|
|
23 |
[build-system]
|
24 |
requires = ["poetry-core"]
|
25 |
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
23 |
[build-system]
|
24 |
requires = ["poetry-core"]
|
25 |
build-backend = "poetry.core.masonry.api"
|
26 |
+
|
27 |
+
package-mode = false
|