visualizingjp commited on
Commit
847d556
โ€ข
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