sergeipetrov
commited on
Commit
•
301fd30
1
Parent(s):
4cfe9dc
Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ API_URL = "<your endpoint URL>"
|
|
9 |
filepath = "/path/to/audio"
|
10 |
|
11 |
with open(filepath, 'rb') as f:
|
12 |
-
audio_encoded = base64.b64encode(f.read())
|
13 |
|
14 |
data = {
|
15 |
"inputs": audio_encoded,
|
|
|
9 |
filepath = "/path/to/audio"
|
10 |
|
11 |
with open(filepath, 'rb') as f:
|
12 |
+
audio_encoded = base64.b64encode(f.read()).decode("utf-8")
|
13 |
|
14 |
data = {
|
15 |
"inputs": audio_encoded,
|