jamesliu1217 commited on
Commit
6922a91
·
verified ·
1 Parent(s): 35a83b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -56,9 +56,9 @@ control_types = ["Ghibli"]
56
 
57
  # Example data
58
  single_examples = [
59
- ["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/00.png"), 768, 768, 5, "Ghibli"],
60
- ["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/02.png"), 768, 768, 42, "Ghibli"],
61
- ["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/03.png"), 768, 768, 1, "Ghibli"],
62
  ]
63
 
64
 
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
72
  with gr.Tab("Ghibli Condition Generation"):
73
  with gr.Row():
74
  with gr.Column():
75
- prompt = gr.Textbox(label="Prompt", default="Ghibli Studio style, Charming hand-drawn anime-style illustration")
76
  spatial_img = gr.Image(label="Ghibli Image", type="pil") # 上传图像文件
77
  height = gr.Slider(minimum=256, maximum=1024, step=64, label="Height", value=768)
78
  width = gr.Slider(minimum=256, maximum=1024, step=64, label="Width", value=768)
 
56
 
57
  # Example data
58
  single_examples = [
59
+ ["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/00.png"), 680, 1024, 5, "Ghibli"],
60
+ ["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/02.png"), 560, 1024, 42, "Ghibli"],
61
+ ["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/03.png"), 568, 1024, 1, "Ghibli"],
62
  ]
63
 
64
 
 
72
  with gr.Tab("Ghibli Condition Generation"):
73
  with gr.Row():
74
  with gr.Column():
75
+ prompt = gr.Textbox(label="Prompt", value="Ghibli Studio style, Charming hand-drawn anime-style illustration")
76
  spatial_img = gr.Image(label="Ghibli Image", type="pil") # 上传图像文件
77
  height = gr.Slider(minimum=256, maximum=1024, step=64, label="Height", value=768)
78
  width = gr.Slider(minimum=256, maximum=1024, step=64, label="Width", value=768)