mboukabous's picture
first commit
4c91838

A newer version of the Gradio SDK is available: 6.5.1

Upgrade

๏ปฟ# Datasets Utilities

This folder contains utility scripts for handling datasets, including downloading data from Kaggle.

๐Ÿ“„ Scripts

kaggle_data.py

  • Description: A Python script to download Kaggle datasets or competition data seamlessly, supporting Google Colab, local Linux/Mac, and Windows environments.

  • Path: data/datasets/kaggle_data.py

  • Key Function: get_kaggle_data(json_path, data_name, is_competition=False, output_dir='data/raw')

  • Example:

    from kaggle_data import get_kaggle_data
    
    # Download a standard Kaggle dataset
    dataset_path = get_kaggle_data("kaggle.json", "paultimothymooney/chest-xray-pneumonia")
    
    # Download competition data
    competition_path = get_kaggle_data("kaggle.json", "house-prices-advanced-regression-techniques", is_competition=True)