anjalyjayakrishnan commited on
Commit
7f8aa66
1 Parent(s): 714f678
Files changed (1) hide show
  1. sample.py +2 -2
sample.py CHANGED
@@ -153,10 +153,10 @@ class Test(datasets.GeneratorBasedBuilder):
153
  data_df = pd.read_csv(f,sep=',')
154
  transcripts = []
155
  for index,row in data_df.iterrows():
156
- samplerate, audio_data = wavfile.read(cwd+row["path"])
157
  yield key, {
158
  "sentence": row["sentence"],
159
  "path": row["path"],
160
- "audio":{"path": cwd+row["path"], "bytes": audio_data}
161
  }
162
  key+=1
 
153
  data_df = pd.read_csv(f,sep=',')
154
  transcripts = []
155
  for index,row in data_df.iterrows():
156
+ samplerate, audio_data = wavfile.read(row["path"])
157
  yield key, {
158
  "sentence": row["sentence"],
159
  "path": row["path"],
160
+ "audio":{"path": row["path"], "bytes": audio_data}
161
  }
162
  key+=1