From 041c0e9bec95bd891bfd7cadd8ec339beabbc54a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Pedersen?= Date: Fri, 21 Jun 2024 13:10:23 +0200 Subject: [PATCH 1/2] Remove typing_extension and pydantic hacks in Dockerfile --- Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b5effc..165e3fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 From 24b48b730ffaf5c3c0ecd8138a598f596a5dfd9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Pedersen?= Date: Fri, 21 Jun 2024 13:10:34 +0200 Subject: [PATCH 2/2] Updated docker build and run instructions --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65753ff..45e97d3 100644 --- a/README.md +++ b/README.md @@ -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.