A-baoYang commited on
Commit
ddf85e5
·
1 Parent(s): 4f0769b
Files changed (1) hide show
  1. api_calls.py +2 -2
api_calls.py CHANGED
@@ -1,6 +1,6 @@
1
  import requests
2
 
3
- API_ENDPOINT = "http://35.229.175.237:8889/"
4
 
5
  # function to call api
6
  def call_api(api_path, api_params):
@@ -36,7 +36,7 @@ def api_ocr(image_filepath, model_provider):
36
  return call_api(api_path, api_params)
37
 
38
  def api_model_cat_pain_assessment(user_input_image):
39
- api_path = "model/cat_pain_assessment"
40
  api_params = {
41
  "user_input_image": user_input_image
42
  }
 
1
  import requests
2
 
3
+ API_ENDPOINT = "http://35.229.175.237:8889"
4
 
5
  # function to call api
6
  def call_api(api_path, api_params):
 
36
  return call_api(api_path, api_params)
37
 
38
  def api_model_cat_pain_assessment(user_input_image):
39
+ api_path = "model/cat-pain-assessment"
40
  api_params = {
41
  "user_input_image": user_input_image
42
  }