Skip to content

Commit

Permalink
Merge pull request #61 from andreped/pydantic-fix
Browse files Browse the repository at this point in the history
Remove pedantic and typing_extension installation instruction hacks in Dockerfile
  • Loading branch information
andreped authored Jun 21, 2024
2 parents 35de495 + 24b48b7 commit 1a46c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ WORKDIR /code
COPY ./demo/requirements.txt /code/demo/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/demo/requirements.txt

# resolve issue with tf==2.4 and gradio dependency collision issue
RUN pip install --force-reinstall typing_extensions==4.7.1

# lower pydantic version to work with typing_extensions deprecation
RUN pip install --force-reinstall "pydantic<2.0.0"

# Install wget
RUN apt install wget -y && \
apt install unzip
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ To access the live demo, click on the `Hugging Face` badge above. Below is a sna
Alternatively, you can deploy the software locally. Note that this is only relevant for development purposes. Simply dockerize the app and run it:

```
docker build -t AeroPath .
docker run -it -p 7860:7860 AeroPath
docker build -t aeropath .
docker run -it -p 7860:7860 aeropath
```

Then open `http://127.0.0.1:7860` in your favourite internet browser to view the demo.
Expand Down

0 comments on commit 1a46c84

Please sign in to comment.