Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,8 @@ def send_request(agent_url, request_type, message_text="Hello, this is a test me
|
|
63 |
envelope = build_utterance_envelope(agent_url, message_text)
|
64 |
|
65 |
# Convert to JSON using the library's method
|
66 |
-
|
|
|
67 |
json_payload_pretty = json.dumps({"openFloor": envelope_dict}, indent=2)
|
68 |
|
69 |
# Send request
|
|
|
63 |
envelope = build_utterance_envelope(agent_url, message_text)
|
64 |
|
65 |
# Convert to JSON using the library's method
|
66 |
+
json_str = envelope.to_json()
|
67 |
+
envelope_dict = json.loads(json_str)
|
68 |
json_payload_pretty = json.dumps({"openFloor": envelope_dict}, indent=2)
|
69 |
|
70 |
# Send request
|