Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.5.1
๏ปฟ# 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.
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)