Spaces:
Sleeping
Sleeping
v4
Browse files
app.py
CHANGED
@@ -12,14 +12,14 @@ headers = {
|
|
12 |
# 'Content-Type': 'multipart/form-data',
|
13 |
}
|
14 |
|
15 |
-
files = {
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
}
|
21 |
-
|
22 |
-
response = requests.post('https://api.gladia.io/audio/text/audio-transcription/', headers=headers, files=files)
|
23 |
|
24 |
|
25 |
def get_audio(url):
|
|
|
12 |
# 'Content-Type': 'multipart/form-data',
|
13 |
}
|
14 |
|
15 |
+
# files = {
|
16 |
+
# 'audio': ("707539ca80d090a28c5ea7bbf93e8068.mp4", open('707539ca80d090a28c5ea7bbf93e8068.mp4', 'rb'), 'video/mp4'),
|
17 |
+
# 'audio_url': (None, 'http://files.gladia.io/example/audio-transcription/split_infinity.wav'),
|
18 |
+
# 'language': (None, 'english'),
|
19 |
+
# 'language_behaviour': (None, 'automatic single language'),
|
20 |
+
# }
|
21 |
+
|
22 |
+
# response = requests.post('https://api.gladia.io/audio/text/audio-transcription/', headers=headers, files=files)
|
23 |
|
24 |
|
25 |
def get_audio(url):
|