Copy Boss commited on
Commit
7f7fe66
·
1 Parent(s): 34644a4
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ if st.button('Transcribe'):
22
  # Read the audio file into a numpy array
23
  audio_data, _ = sf.read(BytesIO(audiofile.read()))
24
  # Convert the audio data to float
25
- audio_data = torch.from_numpy(audio_data).float()
26
  # Transcribe the audio file
27
  result = model.transcribe(audio_data)
28
  # Convert the result to JSON and display it
 
22
  # Read the audio file into a numpy array
23
  audio_data, _ = sf.read(BytesIO(audiofile.read()))
24
  # Convert the audio data to float
25
+ audio_data = torch.from_numpy(audio_data)
26
  # Transcribe the audio file
27
  result = model.transcribe(audio_data)
28
  # Convert the result to JSON and display it