Update test.ipynb

This commit is contained in:
AI3721 2024-11-25 13:17:38 +08:00 committed by GitHub
parent c0fe81d4b1
commit 0c4e07bc5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
" \"save_fps\": 8, # 保存\n",
"}\n",
"files = {\"file\": open(\"input/test.png\", \"rb\")}\n",
"response = requests.post(\"http://192.168.13.121:8182/img2vid\", files=files, data=data)\n",
"response = requests.post(\"http://127.0.0.1:8182/img2vid\", files=files, data=data)\n",
"with open(\"output/test.webp\", \"wb\") as f:\n",
" f.write(response.content)"
]
@ -26,7 +26,7 @@
"source": [
"import requests\n",
"json = {\"prompt\": \"a cute boy\", \"style\": \"Clay\", \"seed\": None, \"num\": 1}\n",
"response = requests.post(\"http://192.168.13.121:8183/text2img_lora\", json=json)\n",
"response = requests.post(\"http://127.0.0.1:8183/text2img_lora\", json=json)\n",
"with open(\"output/test.png\", \"wb\") as f:\n",
" f.write(response.content)"
]