Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -253,6 +253,7 @@ async def test_websocket(websocket: WebSocket):
|
|
253 |
message_response = requests.get(message_url, headers={"Authorization": f"Bearer {access_token}"})
|
254 |
message_data = message_response.json()
|
255 |
|
|
|
256 |
# Check for parts in the message payload
|
257 |
if "payload" in message_data and "parts" in message_data["payload"]:
|
258 |
for part in message_data["payload"]["parts"]:
|
|
|
253 |
message_response = requests.get(message_url, headers={"Authorization": f"Bearer {access_token}"})
|
254 |
message_data = message_response.json()
|
255 |
|
256 |
+
|
257 |
# Check for parts in the message payload
|
258 |
if "payload" in message_data and "parts" in message_data["payload"]:
|
259 |
for part in message_data["payload"]["parts"]:
|