Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
index.py
CHANGED
|
@@ -40,7 +40,7 @@ def sdxl_api(weighted_prompt, weight_amt, prompt, starter_img, prompt_strength):
|
|
| 40 |
|
| 41 |
def img2imgstarter(prompt):
|
| 42 |
input = {
|
| 43 |
-
"prompt": "high quality 3D render of a " + prompt + ", front-view, minimalist and simple mockup on a white background",
|
| 44 |
"output_format": "jpg",
|
| 45 |
"output_quality": 75,
|
| 46 |
"steps": 14
|
|
@@ -98,7 +98,7 @@ def main(text1, text2, prompt, dropdown_value, image_input):
|
|
| 98 |
starter_img = img2imgstarter(prompt)
|
| 99 |
|
| 100 |
outputs = [text1]
|
| 101 |
-
output_amts = [2.
|
| 102 |
for amt in output_amts:
|
| 103 |
outputs.append(sdxl_api(text1, amt, prompt, starter_img, .95))
|
| 104 |
|
|
|
|
| 40 |
|
| 41 |
def img2imgstarter(prompt):
|
| 42 |
input = {
|
| 43 |
+
"prompt": "high quality 3D render of a simple" + prompt + ", front-view, minimalist and simple mockup on a white background",
|
| 44 |
"output_format": "jpg",
|
| 45 |
"output_quality": 75,
|
| 46 |
"steps": 14
|
|
|
|
| 98 |
starter_img = img2imgstarter(prompt)
|
| 99 |
|
| 100 |
outputs = [text1]
|
| 101 |
+
output_amts = [2.25, 1.8, 1.5]
|
| 102 |
for amt in output_amts:
|
| 103 |
outputs.append(sdxl_api(text1, amt, prompt, starter_img, .95))
|
| 104 |
|