Spaces:
Runtime error
Runtime error
Updt agent
Browse files
agent.py
CHANGED
|
@@ -58,9 +58,11 @@ def submit_answers(answers):
|
|
| 58 |
try:
|
| 59 |
response = requests.post(
|
| 60 |
f"{DEFAULT_API_URL}/submit",
|
| 61 |
-
|
| 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}")
|