visualizingjp commited on
Commit
847d556
·
verified ·
1 Parent(s): 632f4a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -124,20 +124,20 @@ print('--init GO--')
124
  with gr.Blocks() as app:
125
  gr.Markdown(
126
  """
127
- # [ICLR\'24] Guiding Instruction-based Image Editing via Multimodal Large Language Models<br>
128
- 🔔 this demo is hosted by [Tsu-Jui Fu](https://github.com/tsujuifu/pytorch_mgie)<br>
129
- 🔔 a black image means that the output did not pass the [safety checker](https://huggingface.co/CompVis/stable-diffusion-safety-checker)<br>
130
- 🔔 if the building process takes too long, please try refreshing the page
131
  """
132
  )
133
- with gr.Row(): inp, res = [gr.Image(height=384, width=384, label='Input Image', interactive=True),
134
- gr.Image(height=384, width=384, label='Goal Image', interactive=True)]
135
- with gr.Row(): txt, out = [gr.Textbox(label='Instruction', interactive=True),
136
- gr.Textbox(label='Expressive Instruction', 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('More Example'), gr.Button('Submit')]
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