GoReed commited on
Commit
c216cbf
·
verified ·
1 Parent(s): 3c5fcf0

Updt agent

Browse files
Files changed (1) hide show
  1. agent.py +4 -2
agent.py CHANGED
@@ -58,9 +58,11 @@ def submit_answers(answers):
58
  try:
59
  response = requests.post(
60
  f"{DEFAULT_API_URL}/submit",
61
- json=json.dumps(request_payload),
62
- headers={"Content-Type": "application/json"}
63
  )
 
 
 
64
  response.raise_for_status()
65
  json_response = response.json()
66
  print(f"Response: {json_response}")
 
58
  try:
59
  response = requests.post(
60
  f"{DEFAULT_API_URL}/submit",
61
+ json=request_payload
 
62
  )
63
+ # json=json.dumps(request_payload),
64
+ # headers={"Content-Type": "application/json"}
65
+ # )
66
  response.raise_for_status()
67
  json_response = response.json()
68
  print(f"Response: {json_response}")