Update test.ipynb
This commit is contained in:
parent
c0fe81d4b1
commit
0c4e07bc5f
|
@ -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)"
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue