witcherderivia commited on
Commit
3cc0518
·
verified ·
1 Parent(s): f706c87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -15
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
- gr.Markdown("This is a demo of TeleStyle V2.")
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("changing the minedge could lead to different style similarity.")
461
- default_prompt='Style Transfer the style of Figure 2 to Figure 1, and keep the content and characteristics of Figure 1.'
462
  gr.Examples(examples=[
463
- ['./qwenstyleref/content_1.webp','./qwenstyleref/style_1.jpg','',123,False,1.0,4,1024,[]],
464
- ['./qwenstyleref/content_6.jpg','./qwenstyleref/style_6.png',default_prompt,123,False,1.0,4,1024,[]],
465
- ['./qwenstyleref/style_6.png','./qwenstyleref/content_6.jpg','',123,False,1.0,4,1024,["infer with style prompt"]],
466
- ['./qwenstyleref/content_3.png','./qwenstyleref/style_3.png','',123,False,1.0,4,1024,[]],
467
- ['./qwenstyleref/content_4.png','./qwenstyleref/content_7.png',default_prompt,123,False,1.0,4,1024,[]],
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],