Spaces:
Sleeping
Sleeping
Commit
·
45e6d3a
1
Parent(s):
b9a9571
Update app/functions.py
Browse files- app/functions.py +11 -1
app/functions.py
CHANGED
@@ -24,4 +24,14 @@ def handle_url(url, from_lang, to_lang, gender):
|
|
24 |
}
|
25 |
|
26 |
response = requests.post(f'{API_ENDPOINT}/synthesise_video_url', headers=headers, data=json.dumps(data))
|
27 |
-
return response.json()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
response = requests.post(f'{API_ENDPOINT}/synthesise_video_url', headers=headers, data=json.dumps(data))
|
27 |
+
return response.json()
|
28 |
+
|
29 |
+
|
30 |
+
def test_response():
|
31 |
+
response = {
|
32 |
+
"srt_url": "https://expressapi.s3.ap-south-1.amazonaws.com/2023-08-05/bfa44e1e97e24b6/subtitle.srt",
|
33 |
+
"video_url": "https://expressapi.s3.ap-south-1.amazonaws.com/2023-08-05/bfa44e1e97e24b6/translated_video.mp4",
|
34 |
+
"translated_srt_url": "https://expressapi.s3.ap-south-1.amazonaws.com/2023-08-05/bfa44e1e97e24b6/translated_subtitle.srt",
|
35 |
+
"translated_audio_url": "https://expressapi.s3.ap-south-1.amazonaws.com/2023-08-05/bfa44e1e97e24b6/translated_audio.mp3",
|
36 |
+
}
|
37 |
+
return response
|