This commit is contained in:
zcr
2026-03-23 10:18:30 +08:00
parent edf5ef1231
commit 8991927cd9
6 changed files with 22 additions and 44 deletions

16
app/litserve_app/client.py Executable file
View File

@@ -0,0 +1,16 @@
import httpx
import asyncio
async def main():
async with httpx.AsyncClient() as client:
response = await client.post(
"http://localhost:8451/predict",
json={
"prompt": "紫色实木窗帘",
}
)
print(response.json())
asyncio.run(main())