yuripeyamashita
commited on
Commit
•
43cd7bc
1
Parent(s):
1caf542
Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def asr():
|
|
38 |
callback_body = data.get('callbackBody')
|
39 |
|
40 |
if res_json.get('data'):
|
41 |
-
callback_body['length'] = len(res_json
|
42 |
if res_json.get('srt'):
|
43 |
-
callback_body['srt'] = res_json
|
44 |
|
45 |
requests.post(callbackURL, json=callback_body)
|
46 |
|
|
|
38 |
callback_body = data.get('callbackBody')
|
39 |
|
40 |
if res_json.get('data'):
|
41 |
+
callback_body['length'] = len(res_json['data'][0])
|
42 |
if res_json.get('srt'):
|
43 |
+
callback_body['srt'] = res_json['srt'][0]
|
44 |
|
45 |
requests.post(callbackURL, json=callback_body)
|
46 |
|