Spaces:
Sleeping
Sleeping
tungedng2710
commited on
Commit
·
b4bf53d
1
Parent(s):
61b248d
update ws
Browse files- query_comfyui.py +1 -1
- utils.py +4 -4
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("http://{}/view?{}".format(server_address, url_values)) as response:
|
24 |
return response.read()
|
25 |
|
26 |
def get_history(prompt_id):
|
utils.py
CHANGED
@@ -49,10 +49,10 @@ TEXT_TO_IMAGE_DICTIONARY = {
|
|
49 |
# "path": "Lykon/dreamshaper-8",
|
50 |
# "pipeline": StableDiffusionPipeline,
|
51 |
# },
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
}
|
57 |
|
58 |
|
|
|
49 |
# "path": "Lykon/dreamshaper-8",
|
50 |
# "pipeline": StableDiffusionPipeline,
|
51 |
# },
|
52 |
+
"Anime (SD 1.5)": {
|
53 |
+
"path": "../checkpoints/darkSushiMixMix_225D.safetensors",
|
54 |
+
"pipeline": StableDiffusionPipeline,
|
55 |
+
}
|
56 |
}
|
57 |
|
58 |
|