You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/11/14 19:46:59 UTC

(beam) 01/01: Pin notebook dependencies

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch users/damccorm/pin
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 65e1395de9200b3f51ded3b8e972f883148101d0
Author: Danny McCormick <da...@google.com>
AuthorDate: Thu Nov 14 14:46:48 2024 -0500

    Pin notebook dependencies
---
 examples/notebooks/beam-ml/automatic_model_refresh.ipynb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/notebooks/beam-ml/automatic_model_refresh.ipynb b/examples/notebooks/beam-ml/automatic_model_refresh.ipynb
index 5b5d2ed484c..f522a74c098 100644
--- a/examples/notebooks/beam-ml/automatic_model_refresh.ipynb
+++ b/examples/notebooks/beam-ml/automatic_model_refresh.ipynb
@@ -132,7 +132,8 @@
       "source": [
         "!pip install apache_beam[gcp]>=2.46.0 --quiet\n",
         "!pip install tensorflow==2.15.0 --quiet\n",
-        "!pip install tensorflow_hub --quiet"
+        "!pip install tensorflow_hub==0.16.0 --quiet\n",
+        "!pip install keras==3.6.0 --quiet"
       ]
     },
     {
@@ -272,7 +273,7 @@
       "cell_type": "code",
       "source": [
         "# In a requirements file, define the dependencies required for the pipeline.\n",
-        "!printf 'tensorflow==2.15.0\\ntensorflow_hub>=0.10.0\\nPillow>=9.0.0' > ./requirements.txt\n",
+        "!printf 'tensorflow==2.15.0\\ntensorflow_hub==0.16.0\\nkeras==3.6.0\\nPillow>=9.0.0' > ./requirements.txt\n",
         "# Install the pipeline dependencies on Dataflow.\n",
         "options.view_as(SetupOptions).requirements_file = './requirements.txt'"
       ],