Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
·
c1cef97
1
Parent(s):
6fafb31
Update app.py
Browse files
app.py
CHANGED
|
@@ -245,36 +245,36 @@ def get_example():
|
|
| 245 |
[
|
| 246 |
'examples/car_input.png',
|
| 247 |
# '',
|
| 248 |
-
'cherry blossom', 'green cabriolet',
|
| 249 |
-
|
| 250 |
'examples/car_output.png',
|
| 251 |
|
| 252 |
|
| 253 |
-
13,7,
|
| 254 |
-
2,2,
|
| 255 |
-
False, False,
|
| 256 |
50,
|
| 257 |
25,
|
| 258 |
7.5,
|
| 259 |
-
0.65, 0.8,
|
| 260 |
890000000
|
| 261 |
|
| 262 |
],
|
| 263 |
[
|
| 264 |
'examples/girl_with_pearl_earring_input.png',
|
| 265 |
# '',
|
| 266 |
-
'glasses', '',
|
| 267 |
-
|
| 268 |
'examples/girl_with_pearl_earring_output.png',
|
| 269 |
|
| 270 |
|
| 271 |
-
4,7,
|
| 272 |
-
3,2,
|
| 273 |
-
False,False,
|
| 274 |
50,
|
| 275 |
25,
|
| 276 |
5,
|
| 277 |
-
0.97, 0.95,
|
| 278 |
1900000000
|
| 279 |
|
| 280 |
],
|
|
@@ -287,13 +287,13 @@ def get_example():
|
|
| 287 |
'examples/flower_field_output.png',
|
| 288 |
|
| 289 |
|
| 290 |
-
20,7,
|
| 291 |
-
1,1,
|
| 292 |
-
False,True,
|
| 293 |
50,
|
| 294 |
25,
|
| 295 |
7,
|
| 296 |
-
0.9, 0.9,
|
| 297 |
1900000000
|
| 298 |
|
| 299 |
|
|
@@ -846,19 +846,24 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 846 |
inputs=[input_image,
|
| 847 |
edit_concept_1,
|
| 848 |
edit_concept_2,
|
|
|
|
| 849 |
tar_prompt,
|
| 850 |
sega_edited_image,
|
| 851 |
guidnace_scale_1,
|
| 852 |
guidnace_scale_2,
|
|
|
|
| 853 |
warmup_1,
|
| 854 |
warmup_2,
|
|
|
|
| 855 |
neg_guidance_1,
|
| 856 |
neg_guidance_2,
|
|
|
|
| 857 |
steps,
|
| 858 |
skip,
|
| 859 |
tar_cfg_scale,
|
| 860 |
threshold_1,
|
| 861 |
threshold_2,
|
|
|
|
| 862 |
seed,
|
| 863 |
sega_concepts_counter
|
| 864 |
],
|
|
|
|
| 245 |
[
|
| 246 |
'examples/car_input.png',
|
| 247 |
# '',
|
| 248 |
+
'cherry blossom', 'green cabriolet','yellow car',
|
| 249 |
+
|
| 250 |
'examples/car_output.png',
|
| 251 |
|
| 252 |
|
| 253 |
+
13,11,7,
|
| 254 |
+
2,2,2,
|
| 255 |
+
False, False, True,
|
| 256 |
50,
|
| 257 |
25,
|
| 258 |
7.5,
|
| 259 |
+
0.65, 0.8, 0.8,
|
| 260 |
890000000
|
| 261 |
|
| 262 |
],
|
| 263 |
[
|
| 264 |
'examples/girl_with_pearl_earring_input.png',
|
| 265 |
# '',
|
| 266 |
+
'glasses', '','',
|
| 267 |
+
|
| 268 |
'examples/girl_with_pearl_earring_output.png',
|
| 269 |
|
| 270 |
|
| 271 |
+
4,7,0,
|
| 272 |
+
3,2,2,
|
| 273 |
+
False,False,False,
|
| 274 |
50,
|
| 275 |
25,
|
| 276 |
5,
|
| 277 |
+
0.97, 0.95,0.95,
|
| 278 |
1900000000
|
| 279 |
|
| 280 |
],
|
|
|
|
| 287 |
'examples/flower_field_output.png',
|
| 288 |
|
| 289 |
|
| 290 |
+
20,7,10,
|
| 291 |
+
1,1,1,
|
| 292 |
+
False,True,False,
|
| 293 |
50,
|
| 294 |
25,
|
| 295 |
7,
|
| 296 |
+
0.9, 0.9,0.8,
|
| 297 |
1900000000
|
| 298 |
|
| 299 |
|
|
|
|
| 846 |
inputs=[input_image,
|
| 847 |
edit_concept_1,
|
| 848 |
edit_concept_2,
|
| 849 |
+
edit_concept_3,
|
| 850 |
tar_prompt,
|
| 851 |
sega_edited_image,
|
| 852 |
guidnace_scale_1,
|
| 853 |
guidnace_scale_2,
|
| 854 |
+
guidnace_scale_3,
|
| 855 |
warmup_1,
|
| 856 |
warmup_2,
|
| 857 |
+
warmup_3,
|
| 858 |
neg_guidance_1,
|
| 859 |
neg_guidance_2,
|
| 860 |
+
neg_guidance_3,
|
| 861 |
steps,
|
| 862 |
skip,
|
| 863 |
tar_cfg_scale,
|
| 864 |
threshold_1,
|
| 865 |
threshold_2,
|
| 866 |
+
threshold_3,
|
| 867 |
seed,
|
| 868 |
sega_concepts_counter
|
| 869 |
],
|