Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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'}
|