azettl commited on
Commit
6374703
·
verified ·
1 Parent(s): f0688d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -88,7 +88,8 @@ def test_agent_availability(agent_url):
88
  try:
89
  # Send a simple manifest request to test
90
  envelope = build_manifest_request_envelope(agent_url)
91
- envelope_dict = envelope.to_dict()
 
92
  payload = {"openFloor": envelope_dict}
93
 
94
  headers = {'Content-Type': 'application/json'}
 
88
  try:
89
  # Send a simple manifest request to test
90
  envelope = build_manifest_request_envelope(agent_url)
91
+ json_str = envelope.to_json()
92
+ envelope_dict = json.loads(json_str)
93
  payload = {"openFloor": envelope_dict}
94
 
95
  headers = {'Content-Type': 'application/json'}