Update app.py
Browse files
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"
|