songweig commited on
Commit
f1cb8d7
1 Parent(s): 1908e52

duplicate button

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -123,7 +123,8 @@ def main():
123
  gr.HTML("""<h1 style="font-weight: 900; margin-bottom: 7px;">Expressive Text-to-Image Generation with Rich Text</h1>
124
  <p> <a href="https://songweige.github.io/">Songwei Ge</a>, <a href="https://taesung.me/">Taesung Park</a>, <a href="https://www.cs.cmu.edu/~junyanz/">Jun-Yan Zhu</a>, <a href="https://jbhuang0604.github.io/">Jia-Bin Huang</a> <p/>
125
  <p> UMD, Adobe, CMU <p/>
126
- <p> <a href="https://rich-text-to-image.github.io">[Website]</a> | <a href="https://github.com/SongweiGe/rich-text-to-image">[Code]</a> | <a href="https://arxiv.org/abs/2304.06720">[Paper]</a> <p/> """)
 
127
  with gr.Row():
128
  with gr.Column():
129
  rich_text_el = gr.HTML(canvas_html, elem_id="canvas_html")
@@ -150,7 +151,7 @@ def main():
150
  with gr.Accordion('Other Parameters', open=False):
151
  steps = gr.Slider(label='Number of Steps',
152
  minimum=0,
153
- maximum=500,
154
  step=1,
155
  value=41)
156
  guidance_weight = gr.Slider(label='CFG weight',
@@ -158,11 +159,11 @@ def main():
158
  maximum=50,
159
  step=0.1,
160
  value=8.5)
161
- width = gr.Dropdown(choices=[512, 768],
162
  value=512,
163
  label='Width',
164
  visible=True)
165
- height = gr.Dropdown(choices=[512, 768],
166
  value=512,
167
  label='height',
168
  visible=True)
 
123
  gr.HTML("""<h1 style="font-weight: 900; margin-bottom: 7px;">Expressive Text-to-Image Generation with Rich Text</h1>
124
  <p> <a href="https://songweige.github.io/">Songwei Ge</a>, <a href="https://taesung.me/">Taesung Park</a>, <a href="https://www.cs.cmu.edu/~junyanz/">Jun-Yan Zhu</a>, <a href="https://jbhuang0604.github.io/">Jia-Bin Huang</a> <p/>
125
  <p> UMD, Adobe, CMU <p/>
126
+ <p> <a href="https://huggingface.co/spaces/songweig/rich-text-to-image?duplicate=true"><img src="https://bit.ly/3gLdBN6" style="display:inline;"alt="Duplicate Space"></a> | <a href="https://rich-text-to-image.github.io">[Website]</a> | <a href="https://github.com/SongweiGe/rich-text-to-image">[Code]</a> | <a href="https://arxiv.org/abs/2304.06720">[Paper]</a><p/>
127
+ <p> For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.""")
128
  with gr.Row():
129
  with gr.Column():
130
  rich_text_el = gr.HTML(canvas_html, elem_id="canvas_html")
 
151
  with gr.Accordion('Other Parameters', open=False):
152
  steps = gr.Slider(label='Number of Steps',
153
  minimum=0,
154
+ maximum=100,
155
  step=1,
156
  value=41)
157
  guidance_weight = gr.Slider(label='CFG weight',
 
159
  maximum=50,
160
  step=0.1,
161
  value=8.5)
162
+ width = gr.Dropdown(choices=[512],
163
  value=512,
164
  label='Width',
165
  visible=True)
166
+ height = gr.Dropdown(choices=[512],
167
  value=512,
168
  label='height',
169
  visible=True)