Sadjad Alikhani commited on
Commit
52347cb
·
verified ·
1 Parent(s): 52e04b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -447,7 +447,7 @@ def process_hdf5_file(uploaded_file, percentage):
447
  # Step 5: Load the HDF5 file and extract the channels and labels
448
  with h5py.File(uploaded_file.name, 'r') as f:
449
  channels = np.array(f['channels']).astype(np.float32) # Assuming 'channels' dataset in the HDF5 file
450
- labels = np.array(f['labels']) # Assuming 'labels' dataset in the HDF5 file
451
  print(f"Loaded dataset with {channels.shape[0]} samples.")
452
 
453
  # Step 7: Tokenize the data using the tokenizer from input_preprocess
 
447
  # Step 5: Load the HDF5 file and extract the channels and labels
448
  with h5py.File(uploaded_file.name, 'r') as f:
449
  channels = np.array(f['channels']).astype(np.float32) # Assuming 'channels' dataset in the HDF5 file
450
+ labels = np.array(f['labels']).astype(np.int64) # Assuming 'labels' dataset in the HDF5 file
451
  print(f"Loaded dataset with {channels.shape[0]} samples.")
452
 
453
  # Step 7: Tokenize the data using the tokenizer from input_preprocess