badalsahani commited on
Commit
b9a9571
·
1 Parent(s): 96aaa55

Update app/functions.py

Browse files
Files changed (1) hide show
  1. app/functions.py +6 -7
app/functions.py CHANGED
@@ -10,6 +10,11 @@ headers = {
10
  'Authorization': f'Bearer {TOKEN}'
11
  }
12
 
 
 
 
 
 
13
  def handle_url(url, from_lang, to_lang, gender):
14
  data = {
15
  'url': url,
@@ -19,10 +24,4 @@ def handle_url(url, from_lang, to_lang, gender):
19
  }
20
 
21
  response = requests.post(f'{API_ENDPOINT}/synthesise_video_url', headers=headers, data=json.dumps(data))
22
- return response.json()
23
-
24
- def get_health():
25
- response = requests.get(API_ENDPOINT, headers=headers)
26
- print(response)
27
- print(response.json())
28
- return "TRUE"
 
10
  'Authorization': f'Bearer {TOKEN}'
11
  }
12
 
13
+ def get_health():
14
+ response = requests.get(API_ENDPOINT, headers=headers)
15
+ return response.json()
16
+
17
+
18
  def handle_url(url, from_lang, to_lang, gender):
19
  data = {
20
  'url': url,
 
24
  }
25
 
26
  response = requests.post(f'{API_ENDPOINT}/synthesise_video_url', headers=headers, data=json.dumps(data))
27
+ return response.json()