diff --git a/examples/notebooks/beam-ml/run_inference_huggingface.ipynb b/examples/notebooks/beam-ml/run_inference_huggingface.ipynb index fa6831f9c6e3..a016aff6dad2 100644 --- a/examples/notebooks/beam-ml/run_inference_huggingface.ipynb +++ b/examples/notebooks/beam-ml/run_inference_huggingface.ipynb @@ -237,7 +237,7 @@ " \"\"\"\n", " def process(self, element):\n", " example = element.example\n", - " translated_text = element.inference[0]['translation_text']\n", + " translated_text = element.inference['translation_text']\n", " print(f'Example: {example}')\n", " print(f'Translated text: {translated_text}')\n", " print('-' * 80)\n" diff --git a/sdks/python/container/ml/py312/gpu_image_requirements.txt b/sdks/python/container/ml/py312/gpu_image_requirements.txt index ca40f87da0b2..21e0db7540c7 100644 --- a/sdks/python/container/ml/py312/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py312/gpu_image_requirements.txt @@ -239,7 +239,7 @@ pytest-xdist==3.8.0 python-dateutil==2.9.0.post0 python-dotenv==1.2.1 python-json-logger==4.0.0 -python-multipart==0.0.21 +python-multipart==0.0.22 python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3