aburnazyan commited on
Commit
67cd8e7
1 Parent(s): 66b2451
Files changed (1) hide show
  1. hy_asr_grqaser.py +9 -4
hy_asr_grqaser.py CHANGED
@@ -5,6 +5,7 @@ from datasets import Dataset, DatasetDict, Features, Value, Audio
5
 
6
  ##
7
  def load_dataset_script(data_dir):
 
8
  """
9
  Load dataset script for custom audio-transcription dataset.
10
 
@@ -40,7 +41,11 @@ def load_dataset_script(data_dir):
40
 
41
 
42
  ## Example usage
43
- if __name__ == "__main__":
44
- data_directory = "C:\\Projects\\aeneas\\hy_asr_grqaser"
45
- dataset = load_dataset_script(data_directory)
46
- print(dataset["train"][2])
 
 
 
 
 
5
 
6
  ##
7
  def load_dataset_script(data_dir):
8
+ print(f"data_dir: {data_dir}")
9
  """
10
  Load dataset script for custom audio-transcription dataset.
11
 
 
41
 
42
 
43
  ## Example usage
44
+ # if __name__ == "__main__":
45
+ # data_directory = "C:\\Projects\\aeneas\\hy_asr_grqaser"
46
+ # dataset = load_dataset_script(data_directory)
47
+ # print(dataset["train"][1])
48
+ # from datasets import load_dataset
49
+ # load_dataset("aburnazy/hy_asr_grqaser", data_dir=".")
50
+
51
+