Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -381,7 +381,7 @@ with gr.Blocks() as demo:
|
|
| 381 |
with gr.Column(elem_id="col-container"):
|
| 382 |
|
| 383 |
gr.Markdown(_HEADER_)
|
| 384 |
-
|
| 385 |
with gr.Row():
|
| 386 |
with gr.Column():
|
| 387 |
with gr.Row():
|
|
@@ -454,22 +454,17 @@ with gr.Blocks() as demo:
|
|
| 454 |
step=8,
|
| 455 |
value=1024,
|
| 456 |
)
|
| 457 |
-
|
| 458 |
with gr.Row(), gr.Column():
|
| 459 |
gr.Markdown("## Examples")
|
| 460 |
-
gr.Markdown("
|
| 461 |
-
default_prompt='
|
| 462 |
gr.Examples(examples=[
|
| 463 |
-
['./qwenstyleref/
|
| 464 |
-
['./qwenstyleref/
|
| 465 |
-
['./qwenstyleref/
|
| 466 |
-
['./qwenstyleref/
|
| 467 |
-
['./qwenstyleref/
|
| 468 |
-
['./qwenstyleref/content_7.png','./qwenstyleref/content_4.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 469 |
-
['./qwenstyleref/content_9.jpg','./qwenstyleref/style_9.png',default_prompt,123,False,1.0,4,1024,[]],
|
| 470 |
-
['./qwenstyleref/style_9.png','./qwenstyleref/content_9.jpg',default_prompt,123,False,1.0,4,1024,["infer with style prompt"]],
|
| 471 |
-
['./qwenstyleref/content_11.png','./qwenstyleref/style_11.jpg',default_prompt,123,False,1.0,4,832,[]],
|
| 472 |
-
['./qwenstyleref/content_9.jpg',None,"convert to photorealistic photograph",123,False,1.0,4,1024,[]],
|
| 473 |
],
|
| 474 |
inputs=[content_ref,
|
| 475 |
style_ref,
|
|
@@ -491,7 +486,7 @@ with gr.Blocks() as demo:
|
|
| 491 |
|
| 492 |
|
| 493 |
# gr.Examples(examples=examples, inputs=[prompt], outputs=[result, seed], fn=infer, cache_examples=False)
|
| 494 |
-
|
| 495 |
|
| 496 |
gr.on(
|
| 497 |
triggers=[run_button.click],
|
|
|
|
| 381 |
with gr.Column(elem_id="col-container"):
|
| 382 |
|
| 383 |
gr.Markdown(_HEADER_)
|
| 384 |
+
|
| 385 |
with gr.Row():
|
| 386 |
with gr.Column():
|
| 387 |
with gr.Row():
|
|
|
|
| 454 |
step=8,
|
| 455 |
value=1024,
|
| 456 |
)
|
| 457 |
+
|
| 458 |
with gr.Row(), gr.Column():
|
| 459 |
gr.Markdown("## Examples")
|
| 460 |
+
gr.Markdown("Some of these references are example refs from Kling Image 3.0 Doc. For those cases, our model is obviouly superior than Kling Image 3.0.")
|
| 461 |
+
default_prompt=''
|
| 462 |
gr.Examples(examples=[
|
| 463 |
+
['./qwenstyleref/man.png','./qwenstyleref/woman.png','Compose the pictures. a man and a woman are fighting with light sabres. They are facing the camera.',123,False,1.0,4,1024,[]],
|
| 464 |
+
['./qwenstyleref/kling_ref1.webp','./qwenstyleref/kling_ref0.webp','Compose the pictures. a girl and a woman are fighting with swords, they are looking at the camera',123,False,1.0,4,1024,[]],
|
| 465 |
+
['./qwenstyleref/kling_ref0.webp','./qwenstyleref/kling_ref1.webp','Compose the pictures. a woman and a girl are fighting with swords, they are looking at the camera',123,False,1.0,4,832,[]],
|
| 466 |
+
['./qwenstyleref/kling_ref0.webp','./qwenstyleref/kling_ref1.webp','Style Transfer',123,False,1.0,4,864,[]],
|
| 467 |
+
['./qwenstyleref/kling_ref0.webp','./qwenstyleref/kling_ref1.webp','',123,False,1.0,4,832,[]],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 468 |
],
|
| 469 |
inputs=[content_ref,
|
| 470 |
style_ref,
|
|
|
|
| 486 |
|
| 487 |
|
| 488 |
# gr.Examples(examples=examples, inputs=[prompt], outputs=[result, seed], fn=infer, cache_examples=False)
|
| 489 |
+
|
| 490 |
|
| 491 |
gr.on(
|
| 492 |
triggers=[run_button.click],
|