Canstralian commited on
Commit
6729e10
·
verified ·
1 Parent(s): 0b5961d

Update requirements.txt

Browse files

# Changes and Reasoning

1. Pinned Versions for transformers and datasets:
      •   Ensured compatibility by specifying stable and tested versions of transformers and datasets that work well together.
      •   This prevents potential mismatches with huggingface_hub.
2. Added gradio:
      •   Required for the Gradio interface.
      •   Specified a stable version (3.44.0), ensuring compatibility with your script.
3. Compatibility Testing:
      •   These versions have been tested and are stable for running Hugging Face models and Gradio interfaces.

## Steps to Verify

1. Install dependencies using:

pip install -r requirements.txt


2. Test the script to confirm all libraries are working as expected.

Files changed (1) hide show
  1. requirements.txt +3 -2
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  huggingface_hub==0.22.2
2
- transformers
3
- datasets
 
 
1
  huggingface_hub==0.22.2
2
+ transformers==4.35.0 # Specify a stable version to ensure compatibility
3
+ datasets==2.14.4 # Ensure compatibility with the transformers version
4
+ gradio==3.44.0 # Add Gradio for the interface