Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,14 +118,13 @@ def process(selected_template_images,costum_image,prompt
|
|
| 118 |
return Enhanced_prompt
|
| 119 |
|
| 120 |
if prompt == "":
|
| 121 |
-
prompt = "A
|
| 122 |
prompt = "A man, with backpack, in a raining tropical forest, adventuring, holding a flashlight, in mist, seeking animals"
|
| 123 |
prompt = "A person, in a sowm, wearing santa hat and a scarf, with a cottage behind"
|
| 124 |
else:
|
| 125 |
# prompt=Enhance_prompt(prompt,Image.new('RGB', (200, 200), color = 'white'))
|
| 126 |
-
prompt = "cinematic photo," + prompt + ", 50mm photograph, half-length portrait, film, bokeh, professional, 4k, highly detailed"
|
| 127 |
print(prompt)
|
| 128 |
-
pass
|
| 129 |
|
| 130 |
if negative_prompt == "":
|
| 131 |
negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, blurry"
|
|
@@ -144,7 +143,7 @@ def process(selected_template_images,costum_image,prompt
|
|
| 144 |
width=width,
|
| 145 |
height=height,
|
| 146 |
input_id_images=select_images,
|
| 147 |
-
input_image_path=
|
| 148 |
negative_prompt=negative_prompt,
|
| 149 |
num_images_per_prompt=1,
|
| 150 |
num_inference_steps=num_steps,
|
|
|
|
| 118 |
return Enhanced_prompt
|
| 119 |
|
| 120 |
if prompt == "":
|
| 121 |
+
prompt = "A woman, in a forest"
|
| 122 |
prompt = "A man, with backpack, in a raining tropical forest, adventuring, holding a flashlight, in mist, seeking animals"
|
| 123 |
prompt = "A person, in a sowm, wearing santa hat and a scarf, with a cottage behind"
|
| 124 |
else:
|
| 125 |
# prompt=Enhance_prompt(prompt,Image.new('RGB', (200, 200), color = 'white'))
|
| 126 |
+
# prompt = "cinematic photo," + prompt + ", 50mm photograph, half-length portrait, film, bokeh, professional, 4k, highly detailed"
|
| 127 |
print(prompt)
|
|
|
|
| 128 |
|
| 129 |
if negative_prompt == "":
|
| 130 |
negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, blurry"
|
|
|
|
| 143 |
width=width,
|
| 144 |
height=height,
|
| 145 |
input_id_images=select_images,
|
| 146 |
+
input_image_path=selected_template_images,
|
| 147 |
negative_prompt=negative_prompt,
|
| 148 |
num_images_per_prompt=1,
|
| 149 |
num_inference_steps=num_steps,
|