Upload main.py
Browse files
main.py
CHANGED
|
@@ -28,6 +28,8 @@ async def forward_to_rumas(b64_str: str):
|
|
| 28 |
print(f"[RUMAS] ➜ sending image ({len(b64_str)} bytes) "
|
| 29 |
f"preview='{short}…'")
|
| 30 |
|
|
|
|
|
|
|
| 31 |
async with httpx.AsyncClient(timeout=60) as client:
|
| 32 |
resp = await client.post(RUMAS_API_URL, json=payload)
|
| 33 |
resp.raise_for_status()
|
|
|
|
| 28 |
print(f"[RUMAS] ➜ sending image ({len(b64_str)} bytes) "
|
| 29 |
f"preview='{short}…'")
|
| 30 |
|
| 31 |
+
print("Payload to RUMAS:", json.dumps(payload)[:300], "…")
|
| 32 |
+
|
| 33 |
async with httpx.AsyncClient(timeout=60) as client:
|
| 34 |
resp = await client.post(RUMAS_API_URL, json=payload)
|
| 35 |
resp.raise_for_status()
|