Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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"),
|
60 |
-
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/02.png"),
|
61 |
-
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/03.png"),
|
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",
|
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)
|