blog
blog copied to clipboard
Fix TensorFlow version issue in 02_how_to_generate.ipynb ref: issue: #2728
This PR fixes an issue in the 02_how_to_generate.ipynb notebook where the code was trying to install TensorFlow 2.1, which is no longer available in PyPI.
The Error was: error : Could not find a version that satisfies the requirement tensorflow==2.1 (from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.0.post1, 2.15.1, 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0, 2.17.1, 2.18.0rc0, 2.18.0rc1, 2.18.0rc2, 2.18.0, 2.19.0rc0) ERROR: No matching distribution found for tensorflow==2.1.
Changes Made: Updated the TensorFlow version to a more recent and available version (e.g., tensorflow>=2.12). Ensured compatibility with the existing codebase. Tested the notebook to confirm it runs without errors.
Issue Reference: This PR addresses the issue reported in https://github.com/huggingface/blog/issues/2728.
Testing: Ran the updated notebook and verified that all cells execute without errors. Checked that TensorFlow is correctly installed in the environment.
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
@pcuenca @Cadene @Vaibhavs10 can you please review this fixes the TensorFlow version issue in 02_how_to_generate.ipynb