A-baoYang commited on
Commit
0300c44
·
1 Parent(s): 094adea
Files changed (1) hide show
  1. api_calls.py +1 -1
api_calls.py CHANGED
@@ -6,7 +6,7 @@ API_ENDPOINT = "http://35.229.175.237:8889"
6
  def call_api(api_path, api_params):
7
  url = f"{API_ENDPOINT}/{api_path}"
8
  response = requests.post(
9
- url, json=**api_params, headers={"Content-Type": "application/json"})
10
  return response.json()
11
 
12
  def api_qa_normal(query, filtered_data, prompt_template):
 
6
  def call_api(api_path, api_params):
7
  url = f"{API_ENDPOINT}/{api_path}"
8
  response = requests.post(
9
+ url, json=api_params, headers={"Content-Type": "application/json"})
10
  return response.json()
11
 
12
  def api_qa_normal(query, filtered_data, prompt_template):