Spaces:
Sleeping
Sleeping
tungedng2710
commited on
Commit
·
61b248d
1
Parent(s):
3586f52
update ws
Browse files- query_comfyui.py +1 -1
query_comfyui.py
CHANGED
@@ -20,7 +20,7 @@ def queue_prompt(prompt):
|
|
20 |
def get_image(filename, subfolder, folder_type):
|
21 |
data = {"filename": filename, "subfolder": subfolder, "type": folder_type}
|
22 |
url_values = urllib.parse.urlencode(data)
|
23 |
-
with urllib.request.urlopen("
|
24 |
return response.read()
|
25 |
|
26 |
def get_history(prompt_id):
|
|
|
20 |
def get_image(filename, subfolder, folder_type):
|
21 |
data = {"filename": filename, "subfolder": subfolder, "type": folder_type}
|
22 |
url_values = urllib.parse.urlencode(data)
|
23 |
+
with urllib.request.urlopen("https://{}/view?{}".format(server_address, url_values)) as response:
|
24 |
return response.read()
|
25 |
|
26 |
def get_history(prompt_id):
|