flow is an amazing image model
Browse files
App/Generate/database/Vercel.py
CHANGED
@@ -47,6 +47,7 @@ class AsyncImageGenerator:
|
|
47 |
"steps": 28,
|
48 |
"width": 1024,
|
49 |
"height": 1536,
|
|
|
50 |
"prompt": payload,
|
51 |
# "sampler": "dpmpp_2m_sde_gpu",
|
52 |
# "scheduler": "karras",
|
@@ -61,7 +62,8 @@ class AsyncImageGenerator:
|
|
61 |
# "path": "models/playgroundai/playground-v2.5-1024px-aesthetic/versions/a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24",
|
62 |
# "path": "models/fofr/any-comfyui-workflow/versions/cd385285ba75685a040afbded7b79814a971f3febf46c5eab7c716e200c784e1",
|
63 |
# "path": "models/fofr/sd3-explorer/versions/a9f4aebd943ad7db13de8e34debea359d5578d08f128e968f9a36c3e9b0148d4",
|
64 |
-
"path": "models/stability-ai/stable-diffusion-3",
|
|
|
65 |
# "path": "models/lucataco/proteus-v0.4/versions/34a427535a3c45552b94369280b823fcd0e5c9710e97af020bf445c033d4569e",
|
66 |
# "path": "models/lucataco/juggernaut-xl-v9/versions/bea09cf018e513cef0841719559ea86d2299e05448633ac8fe270b5d5cd6777e",
|
67 |
}
|
@@ -123,7 +125,9 @@ async def process_images(payloads):
|
|
123 |
result = await image_generator.generate_image(payload)
|
124 |
status = await image_generator.fetch_image_status(result["id"])
|
125 |
print(status["output"])
|
126 |
-
|
|
|
|
|
127 |
|
128 |
for payload in payloads:
|
129 |
tasks.append(payload)
|
@@ -139,7 +143,7 @@ async def process_images(payloads):
|
|
139 |
# # # Example payloads
|
140 |
# payloads = [
|
141 |
# """
|
142 |
-
# Awsome cat
|
143 |
# """
|
144 |
# ]
|
145 |
|
|
|
47 |
"steps": 28,
|
48 |
"width": 1024,
|
49 |
"height": 1536,
|
50 |
+
"aspect_ratio": "9:16",
|
51 |
"prompt": payload,
|
52 |
# "sampler": "dpmpp_2m_sde_gpu",
|
53 |
# "scheduler": "karras",
|
|
|
62 |
# "path": "models/playgroundai/playground-v2.5-1024px-aesthetic/versions/a45f82a1382bed5c7aeb861dac7c7d191b0fdf74d8d57c4a0e6ed7d4d0bf7d24",
|
63 |
# "path": "models/fofr/any-comfyui-workflow/versions/cd385285ba75685a040afbded7b79814a971f3febf46c5eab7c716e200c784e1",
|
64 |
# "path": "models/fofr/sd3-explorer/versions/a9f4aebd943ad7db13de8e34debea359d5578d08f128e968f9a36c3e9b0148d4",
|
65 |
+
# "path": "models/stability-ai/stable-diffusion-3",
|
66 |
+
"path": "models/black-forest-labs/flux-schnell",
|
67 |
# "path": "models/lucataco/proteus-v0.4/versions/34a427535a3c45552b94369280b823fcd0e5c9710e97af020bf445c033d4569e",
|
68 |
# "path": "models/lucataco/juggernaut-xl-v9/versions/bea09cf018e513cef0841719559ea86d2299e05448633ac8fe270b5d5cd6777e",
|
69 |
}
|
|
|
125 |
result = await image_generator.generate_image(payload)
|
126 |
status = await image_generator.fetch_image_status(result["id"])
|
127 |
print(status["output"])
|
128 |
+
if type(status["output"]) == list:
|
129 |
+
results.extend(status["output"])
|
130 |
+
results.append(status["output"])
|
131 |
|
132 |
for payload in payloads:
|
133 |
tasks.append(payload)
|
|
|
143 |
# # # Example payloads
|
144 |
# payloads = [
|
145 |
# """
|
146 |
+
# comicbook illustration artistic, beautiful Awsome cat
|
147 |
# """
|
148 |
# ]
|
149 |
|