Spaces:
Runtime error
Runtime error
lixiang46
commited on
Commit
โข
8004741
1
Parent(s):
2225ed3
update
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ if hasattr(pipe_i2i.unet, 'encoder_hid_proj'):
|
|
51 |
pipe_i2i.load_ip_adapter(f'{ckpt_IPA_dir}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
|
52 |
|
53 |
MAX_SEED = np.iinfo(np.int32).max
|
54 |
-
MAX_IMAGE_SIZE =
|
55 |
|
56 |
@spaces.GPU
|
57 |
def infer(prompt,
|
@@ -103,7 +103,7 @@ examples = [
|
|
103 |
["ไธๅผ ็ข่ซ็็
ง็๏ผๅพฎ่ท๏ผๅ็ฆ๏ผ้ซ่ดจ้๏ผ็ตๅฝฑ๏ผๆฟ็ไธไธช็ๅญ๏ผๅ็โๅฏๅพโ", None, None],
|
104 |
["3D anime style, hyperrealistic oil painting, dolphin leaping out of the water", None, None],
|
105 |
["็ฉฟ็้ป่ฒTๆค่กซ๏ผไธ้ขไธญๆ็ปฟ่ฒๅคงๅญๅ็โๅฏๅพโ", "image/test_ip.jpg", 0.5],
|
106 |
-
["A cute dog is running
|
107 |
]
|
108 |
|
109 |
css="""
|
@@ -120,13 +120,7 @@ css="""
|
|
120 |
}
|
121 |
"""
|
122 |
|
123 |
-
with gr.Blocks(css=css) as
|
124 |
-
with gr.Row():
|
125 |
-
with gr.Column(elem_id='title'):
|
126 |
-
gr.Markdown(f"""
|
127 |
-
# Kolors
|
128 |
-
""")
|
129 |
-
|
130 |
with gr.Row():
|
131 |
with gr.Column(elem_id="col-left"):
|
132 |
with gr.Row():
|
@@ -210,4 +204,4 @@ with gr.Blocks(css=css) as demo:
|
|
210 |
outputs = [result]
|
211 |
)
|
212 |
|
213 |
-
|
|
|
51 |
pipe_i2i.load_ip_adapter(f'{ckpt_IPA_dir}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
|
52 |
|
53 |
MAX_SEED = np.iinfo(np.int32).max
|
54 |
+
MAX_IMAGE_SIZE = 1024
|
55 |
|
56 |
@spaces.GPU
|
57 |
def infer(prompt,
|
|
|
103 |
["ไธๅผ ็ข่ซ็็
ง็๏ผๅพฎ่ท๏ผๅ็ฆ๏ผ้ซ่ดจ้๏ผ็ตๅฝฑ๏ผๆฟ็ไธไธช็ๅญ๏ผๅ็โๅฏๅพโ", None, None],
|
104 |
["3D anime style, hyperrealistic oil painting, dolphin leaping out of the water", None, None],
|
105 |
["็ฉฟ็้ป่ฒTๆค่กซ๏ผไธ้ขไธญๆ็ปฟ่ฒๅคงๅญๅ็โๅฏๅพโ", "image/test_ip.jpg", 0.5],
|
106 |
+
["A cute dog is running", "image/test_ip2.png", 0.5]
|
107 |
]
|
108 |
|
109 |
css="""
|
|
|
120 |
}
|
121 |
"""
|
122 |
|
123 |
+
with gr.Blocks(css=css, title="Kolors") as Kolors:
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
with gr.Row():
|
125 |
with gr.Column(elem_id="col-left"):
|
126 |
with gr.Row():
|
|
|
204 |
outputs = [result]
|
205 |
)
|
206 |
|
207 |
+
Kolors.queue().launch(debug=True)
|