Skip to content

Commit

Permalink
Update requirements for Keras 3 (keras-team#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampathweb authored Dec 12, 2023
1 parent ee46587 commit 690c123
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM python:3.9

COPY requirements.txt ./
RUN pip install -r requirements.txt
RUN pip install keras==3.0.1

COPY ./ ./
WORKDIR scripts
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This repository hosts the code used to generate the [keras.io](https://keras.io)

```
pip install -r requirements.txt
# Update Keras version to 3
pip install keras==3.0.1
cd scripts
python autogen.py make
python autogen.py serve
Expand Down
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ pycocotools
pydot
tensorflow
tensorflow_datasets
keras-tuner==1.4.5
keras-cv==0.7.1
keras-tuner==1.4.6
keras-cv==0.7.2
tf_keras==2.15.0
keras-nlp==0.6.3
keras==3.0.1
keras-nlp==0.6.4
6 changes: 3 additions & 3 deletions scripts/autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
KERAS_TEAM_GH = "https://github.com/keras-team"
PROJECT_URL = {
"keras": f"{KERAS_TEAM_GH}/keras/tree/v3.0.1/",
"keras_tuner": f"{KERAS_TEAM_GH}/keras-tuner/tree/v1.4.5/",
"keras_cv": f"{KERAS_TEAM_GH}/keras-cv/tree/v0.7.1/",
"keras_nlp": f"{KERAS_TEAM_GH}/keras-nlp/tree/v0.6.3/",
"keras_tuner": f"{KERAS_TEAM_GH}/keras-tuner/tree/v1.4.6/",
"keras_cv": f"{KERAS_TEAM_GH}/keras-cv/tree/v0.7.2/",
"keras_nlp": f"{KERAS_TEAM_GH}/keras-nlp/tree/v0.6.4/",
"tf_keras": f"{KERAS_TEAM_GH}/tf-keras/tree/v2.15.0/",
}
USE_MULTIPROCESSING = False
Expand Down

0 comments on commit 690c123

Please sign in to comment.