HF auto train dataset load_metric error

It looks like you’re using the no-code platform and may have duplicated the space.

Go to https://huggingface.co/spaces/ianmd/autotrain-advanced/tree/main and update the Dockerfile.

Change this:

FROM huggingface/autotrain-advanced:latest  
CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1

To this:

FROM huggingface/autotrain-advanced:latest  
RUN pip install --upgrade pip \  
 && pip install datasets==2.9  
CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1

Then, restart your Space.

Or, you can try using an older version of the Docker container, for example:

FROM huggingface/autotrain-advanced:5e9f28f

You can browse available tags here:
https://hub.docker.com/r/huggingface/autotrain-advanced/tags?page=4

2 Likes