16:9 aspect ratio
Browse files- App/Generate/database/Vercel.py +12 -12
App/Generate/database/Vercel.py
CHANGED
|
@@ -47,7 +47,7 @@ class AsyncImageGenerator:
|
|
| 47 |
"steps": 28,
|
| 48 |
"width": 1024,
|
| 49 |
"height": 1536,
|
| 50 |
-
"aspect_ratio": "
|
| 51 |
"prompt": payload,
|
| 52 |
# "sampler": "dpmpp_2m_sde_gpu",
|
| 53 |
# "scheduler": "karras",
|
|
@@ -140,18 +140,18 @@ async def process_images(payloads):
|
|
| 140 |
return results
|
| 141 |
|
| 142 |
|
| 143 |
-
# #
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
|
| 150 |
|
| 151 |
-
# #
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
|
| 156 |
|
| 157 |
-
|
|
|
|
| 47 |
"steps": 28,
|
| 48 |
"width": 1024,
|
| 49 |
"height": 1536,
|
| 50 |
+
"aspect_ratio": "16:9",
|
| 51 |
"prompt": payload,
|
| 52 |
# "sampler": "dpmpp_2m_sde_gpu",
|
| 53 |
# "scheduler": "karras",
|
|
|
|
| 140 |
return results
|
| 141 |
|
| 142 |
|
| 143 |
+
# # Example payloads
|
| 144 |
+
payloads = [
|
| 145 |
+
"""
|
| 146 |
+
comicbook illustration artistic, beautiful Awsome cat
|
| 147 |
+
"""
|
| 148 |
+
]
|
| 149 |
|
| 150 |
|
| 151 |
+
# # Run the asyncio event loop
|
| 152 |
+
async def main():
|
| 153 |
+
results = await process_images(payloads)
|
| 154 |
+
pprint.pprint(results)
|
| 155 |
|
| 156 |
|
| 157 |
+
asyncio.run(main())
|