Issue with huggingface.load_dataset()

I just fixed. Step-by-step:

  • Downgrade the Python from 3.10 to 3.9
  • Fix Streamlit sdk version
  • Update the requirements.txt with latest datasets and huggingface_hub libraries.

README.md

sdk: streamlit
sdk_version: 1.33.0
python_version: 3.9
app_file: app.py
...

requirements.txt

# HuggingFace
datasets==3.2.0
huggingface_hub==0.27.0

app.py

from datasets import load_dataset

dataset_name = "PedroCJardim/QASports"
dataset_split = "basketball"
dataset = load_dataset(dataset_name, name=dataset_split)

1 Like