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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- envelope_dict = envelope.to_dict()
 
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