Baghdad99 commited on
Commit
306b64d
1 Parent(s): 442971c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import soundfile as sf
4
  import numpy as np
5
  import tempfile
6
  from pydub import AudioSegment
 
7
 
8
  # Define the Hugging Face Inference API URLs and headers
9
  ASR_API_URL = "https://api-inference.huggingface.co/models/Baghdad99/saad-speech-recognition-hausa-audio-to-text"
 
4
  import numpy as np
5
  import tempfile
6
  from pydub import AudioSegment
7
+ import io # Add this line
8
 
9
  # Define the Hugging Face Inference API URLs and headers
10
  ASR_API_URL = "https://api-inference.huggingface.co/models/Baghdad99/saad-speech-recognition-hausa-audio-to-text"