Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FandosA authored Dec 26, 2021
1 parent e8460b5 commit 010e219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def envelope(y, rate, threshold):
df.set_index('fname', inplace=True)

for f in df.index:
rate, signal = wavfile.read('toPredict/'+f)
rate, signal = wavfile.read('wavfiles_ToPredict/'+f)
df.at[f, 'length'] = signal.shape[0]/rate

df.reset_index(inplace = True)
Expand Down Expand Up @@ -101,4 +101,4 @@ def envelope(y, rate, threshold):
elif config.mode == 'time':
df.to_csv('Recurrent_Predictions.csv', index = False)
elif config.mode == 'feedforward':
df.to_csv('Feedforward_Predictions.csv', index = False)
df.to_csv('Feedforward_Predictions.csv', index = False)

0 comments on commit 010e219

Please sign in to comment.