Spaces:
Paused
Paused
Linoy Tsaban
commited on
Commit
·
94a5545
1
Parent(s):
4daae8b
Update app.py
Browse files
app.py
CHANGED
|
@@ -303,9 +303,10 @@ def get_example():
|
|
| 303 |
7,7,
|
| 304 |
1,1,
|
| 305 |
False, True,
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
|
|
|
| 309 |
|
| 310 |
],
|
| 311 |
[
|
|
@@ -319,55 +320,31 @@ def get_example():
|
|
| 319 |
3,7,
|
| 320 |
3,2,
|
| 321 |
False,False,
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
|
|
|
| 325 |
|
| 326 |
],
|
| 327 |
-
|
| 328 |
-
'examples/rockey_shore_input.jpg',
|
| 329 |
-
# '',
|
| 330 |
-
'sea turtle', '',
|
| 331 |
-
'watercolor painting',
|
| 332 |
-
'examples/rockey_shore_output.jpg',
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
7,7,
|
| 336 |
-
1,2,
|
| 337 |
-
False,False,
|
| 338 |
-
100,
|
| 339 |
-
36,
|
| 340 |
-
15,
|
| 341 |
-
],
|
| 342 |
[
|
| 343 |
'examples/flower_field_input.jpg',
|
| 344 |
# '',
|
| 345 |
-
'
|
| 346 |
-
'
|
| 347 |
'examples/flower_field_output_2.jpg',
|
| 348 |
|
| 349 |
|
| 350 |
20,7,
|
| 351 |
1,1,
|
| 352 |
False,True,
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
|
|
|
| 356 |
|
| 357 |
],
|
| 358 |
-
|
| 359 |
-
'examples/butterfly_input.jpg',
|
| 360 |
-
# '',
|
| 361 |
-
'bee', 'butterfly',
|
| 362 |
-
'oil painting',
|
| 363 |
-
'examples/butterfly_output.jpg',
|
| 364 |
-
7, 7,
|
| 365 |
-
1,1,
|
| 366 |
-
False, True,
|
| 367 |
-
100,
|
| 368 |
-
36,
|
| 369 |
-
15,
|
| 370 |
-
]
|
| 371 |
]
|
| 372 |
return case
|
| 373 |
|
|
@@ -386,6 +363,8 @@ def swap_visibilities(input_image,
|
|
| 386 |
steps,
|
| 387 |
skip,
|
| 388 |
tar_cfg_scale,
|
|
|
|
|
|
|
| 389 |
sega_concepts_counter
|
| 390 |
|
| 391 |
):
|
|
@@ -914,6 +893,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 914 |
steps,
|
| 915 |
skip,
|
| 916 |
tar_cfg_scale,
|
|
|
|
|
|
|
| 917 |
sega_concepts_counter
|
| 918 |
],
|
| 919 |
outputs=[share_btn_container, box1, concept_1, guidnace_scale_1,neg_guidance_1, row1, row2,box2, concept_2, guidnace_scale_2,neg_guidance_2,row2, row3,sega_concepts_counter],
|
|
|
|
| 303 |
7,7,
|
| 304 |
1,1,
|
| 305 |
False, True,
|
| 306 |
+
50,
|
| 307 |
+
25,
|
| 308 |
+
5,
|
| 309 |
+
0.95, 0.95
|
| 310 |
|
| 311 |
],
|
| 312 |
[
|
|
|
|
| 320 |
3,7,
|
| 321 |
3,2,
|
| 322 |
False,False,
|
| 323 |
+
50,
|
| 324 |
+
25,
|
| 325 |
+
5,
|
| 326 |
+
0.97, 0.95
|
| 327 |
|
| 328 |
],
|
| 329 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
[
|
| 331 |
'examples/flower_field_input.jpg',
|
| 332 |
# '',
|
| 333 |
+
'pink tulips', 'red flowers',
|
| 334 |
+
'van gogh painting',
|
| 335 |
'examples/flower_field_output_2.jpg',
|
| 336 |
|
| 337 |
|
| 338 |
20,7,
|
| 339 |
1,1,
|
| 340 |
False,True,
|
| 341 |
+
50,
|
| 342 |
+
25,
|
| 343 |
+
7,
|
| 344 |
+
0.9, 0.9
|
| 345 |
|
| 346 |
],
|
| 347 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 348 |
]
|
| 349 |
return case
|
| 350 |
|
|
|
|
| 363 |
steps,
|
| 364 |
skip,
|
| 365 |
tar_cfg_scale,
|
| 366 |
+
threshold_1,
|
| 367 |
+
threshold_2,
|
| 368 |
sega_concepts_counter
|
| 369 |
|
| 370 |
):
|
|
|
|
| 893 |
steps,
|
| 894 |
skip,
|
| 895 |
tar_cfg_scale,
|
| 896 |
+
threshold_1,
|
| 897 |
+
threshold_2,
|
| 898 |
sega_concepts_counter
|
| 899 |
],
|
| 900 |
outputs=[share_btn_container, box1, concept_1, guidnace_scale_1,neg_guidance_1, row1, row2,box2, concept_2, guidnace_scale_2,neg_guidance_2,row2, row3,sega_concepts_counter],
|