|
|
@ -1,7 +1,7 @@ |
|
|
|
#This is an example that uses the websockets api to know when a prompt execution is done |
|
|
|
#This is an example that uses the websockets api to know when a prompt execution is done |
|
|
|
#Once the prompt execution is done it downloads the images using the /history endpoint |
|
|
|
#Once the prompt execution is done it downloads the images using the /history endpoint |
|
|
|
|
|
|
|
|
|
|
|
import websocket |
|
|
|
import websocket #NOTE: websocket-client (https://github.com/websocket-client/websocket-client) |
|
|
|
import uuid |
|
|
|
import uuid |
|
|
|
import json |
|
|
|
import json |
|
|
|
import urllib.request |
|
|
|
import urllib.request |
|
|
|