Spaces:
Sleeping
Sleeping
Commit
·
9719550
1
Parent(s):
6b4cdc0
Update app/functions.py
Browse files- app/functions.py +5 -0
app/functions.py
CHANGED
@@ -17,4 +17,9 @@ def handle_url(url, from_lang, to_lang, gender):
|
|
17 |
}
|
18 |
|
19 |
response = requests.post(f'{API_ENDPOINT}/synthesise_video_url', headers=headers, data=json.dumps(data))
|
|
|
|
|
|
|
|
|
|
|
20 |
return response.json()
|
|
|
17 |
}
|
18 |
|
19 |
response = requests.post(f'{API_ENDPOINT}/synthesise_video_url', headers=headers, data=json.dumps(data))
|
20 |
+
return response.json()
|
21 |
+
|
22 |
+
def get_health():
|
23 |
+
response = requests.get(API_ENDPOINT)
|
24 |
+
print(API_ENDPOINT)
|
25 |
return response.json()
|