HypermindLabs commited on
Commit
9ed9129
·
1 Parent(s): db5b28f

big update

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,13 +47,13 @@ if uploaded_file is not None:
47
  waveform = audio
48
  # Set the chunk size
49
  chunk_size = 16000
50
-
51
  # Calculate the number of chunks
52
  num_chunks = len(waveform) // chunk_size
53
 
54
  # Reshape the waveform into chunks
55
  waveform_chunks = np.array_split(waveform[:num_chunks * chunk_size], num_chunks)
56
-
57
  for chunk in waveform_chunks:
58
  input_tensor = torch.tensor(chunk).unsqueeze(0).to(torch.float32)
59
  result = model(input_tensor)
 
47
  waveform = audio
48
  # Set the chunk size
49
  chunk_size = 16000
50
+ st.write("Reached stage 2")
51
  # Calculate the number of chunks
52
  num_chunks = len(waveform) // chunk_size
53
 
54
  # Reshape the waveform into chunks
55
  waveform_chunks = np.array_split(waveform[:num_chunks * chunk_size], num_chunks)
56
+ st.write("Reached stage 3")
57
  for chunk in waveform_chunks:
58
  input_tensor = torch.tensor(chunk).unsqueeze(0).to(torch.float32)
59
  result = model(input_tensor)