Spaces:
Runtime error
Runtime error
visualizingjp
commited on
Commit
โข
847d556
1
Parent(s):
632f4a6
Update app.py
Browse files
app.py
CHANGED
@@ -124,20 +124,20 @@ print('--init GO--')
|
|
124 |
with gr.Blocks() as app:
|
125 |
gr.Markdown(
|
126 |
"""
|
127 |
-
# [ICLR\'24]
|
128 |
-
๐
|
129 |
-
๐
|
130 |
-
๐
|
131 |
"""
|
132 |
)
|
133 |
-
with gr.Row(): inp, res = [gr.Image(height=384, width=384, label='
|
134 |
-
gr.Image(height=384, width=384, label='
|
135 |
-
with gr.Row(): txt, out = [gr.Textbox(label='
|
136 |
-
gr.Textbox(label='
|
137 |
with gr.Row(): seed, cfg_txt, cfg_img = [gr.Number(value=13331, label='Seed', interactive=True),
|
138 |
gr.Number(value=7.5, label='Text CFG', interactive=True),
|
139 |
gr.Number(value=1.5, label='Image CFG', interactive=True)]
|
140 |
-
with gr.Row(): btn_exp, btn_sub = [gr.Button('
|
141 |
btn_exp.click(fn=go_example, inputs=[seed, cfg_txt, cfg_img], outputs=[inp, txt, seed, cfg_txt, cfg_img])
|
142 |
btn_sub.click(fn=go_mgie, inputs=[inp, txt, seed, cfg_txt, cfg_img], outputs=[res, out])
|
143 |
|
|
|
124 |
with gr.Blocks() as app:
|
125 |
gr.Markdown(
|
126 |
"""
|
127 |
+
# [ICLR\'24] ใใซใใขใผใใซๅคง่ฆๆจก่จ่ชใขใใซใซใใๆ็คบใใผในใฎ็ปๅ็ทจ้ใฎใฌใคใ<br>
|
128 |
+
๐ ใใฎใใขใฏ [Tsu-Jui Fu](https://github.com/tsujuifu/pytorch_mgie) ใไธปๅฌใใฆใใพใ<br>
|
129 |
+
๐ ้ปใ็ปๅใฏใๅบๅใ[ๅฎๅ
จๆงใใงใใซใผ](https://huggingface.co/CompVis/stable-diffusion-safety-checker)ใซๅๆ ผใใชใใฃใใใจใๆๅณใใพใ<br>
|
130 |
+
๐ ใใซใใปใใญใปในใซๆ้ใใใใใใใๅ ดๅใฏใใใผใธใๆดๆฐใใฆใฟใฆใใ ใใ
|
131 |
"""
|
132 |
)
|
133 |
+
with gr.Row(): inp, res = [gr.Image(height=384, width=384, label='ใคใณใใใ็ปๅ', interactive=True),
|
134 |
+
gr.Image(height=384, width=384, label='ใขใฆใใใใ็ปๅ', interactive=True)]
|
135 |
+
with gr.Row(): txt, out = [gr.Textbox(label='ๆ็คบ', interactive=True),
|
136 |
+
gr.Textbox(label='่กจ็พใฎๆ็คบ', interactive=False)]
|
137 |
with gr.Row(): seed, cfg_txt, cfg_img = [gr.Number(value=13331, label='Seed', interactive=True),
|
138 |
gr.Number(value=7.5, label='Text CFG', interactive=True),
|
139 |
gr.Number(value=1.5, label='Image CFG', interactive=True)]
|
140 |
+
with gr.Row(): btn_exp, btn_sub = [gr.Button('ใใใซไบไพใ'), gr.Button('ๅฎ่กใใ')]
|
141 |
btn_exp.click(fn=go_example, inputs=[seed, cfg_txt, cfg_img], outputs=[inp, txt, seed, cfg_txt, cfg_img])
|
142 |
btn_sub.click(fn=go_mgie, inputs=[inp, txt, seed, cfg_txt, cfg_img], outputs=[res, out])
|
143 |
|