Spaces:
Runtime error
Runtime error
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 |
|