Floor_Plan_dataset / README.md
DisgustingOzil's picture
Update README.md
50aa10b verified
metadata
dataset_info:
  features:
    - name: image
      dtype: image
    - name: en_text
      dtype: string
  splits:
    - name: train
      num_bytes: 9768225
      num_examples: 170
  download_size: 4653899
  dataset_size: 9768225
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*

Dataset Card for "Pak_Law_QA"


from huggingface_hub import login

login()
from datasets import load_dataset
import os

# dataset = load_dataset("imagefolder", data_dir="/home/musab/Downloads/ROBIN/Dataset_3rooms/", split="train")
# from datasets import load_dataset

# Load dataset
data_dir = "/home/musab/Downloads/ROBIN/Dataset_3rooms/"
dataset = load_dataset("imagefolder", data_dir=data_dir, split="train")

# Define a function that will be applied to each item
def add_new_column(example):
    # Add a new key-value pair for the new column
    example["en_text"] = "Create 3 room 2d floor plan"
    return example

# Use the map function to apply the function to each item in the dataset
dataset = dataset.map(add_new_column)

# To verify that the new column has been added
print(dataset.column_names)

dataset.push_to_hub("DisgustingOzil/Pak_Law_QA", token=os.environ.get('HF_TOKEN'))

More Information needed