linzhengyu commited on
Commit
446074e
·
1 Parent(s): 80dffca

test: print response content for debugging

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +2 -1
src/submission/submit.py CHANGED
@@ -94,10 +94,11 @@ def add_new_submit(
94
  json=request_json, # 使用 json 参数发送 JSON body
95
  headers={"Content-Type": "application/json"}
96
  )
 
97
  if response.status_code == 200:
98
  data = response.json()
 
99
  if data.get("code") == 0:
100
- print("returned data: ", data)
101
  return styled_message(
102
  "Your request has been submitted to the evaluation queue!\nPlease wait for the model to show in the PENDING list."
103
  )
 
94
  json=request_json, # 使用 json 参数发送 JSON body
95
  headers={"Content-Type": "application/json"}
96
  )
97
+ print("response: ", response) #print response content for debugging
98
  if response.status_code == 200:
99
  data = response.json()
100
+ print("returned data: ", data)
101
  if data.get("code") == 0:
 
102
  return styled_message(
103
  "Your request has been submitted to the evaluation queue!\nPlease wait for the model to show in the PENDING list."
104
  )