Spaces:
Runtime error
Runtime error
Copy Boss
commited on
Commit
·
7f7fe66
1
Parent(s):
34644a4
h1
Browse files
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)
|
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
|