JingyeChen commited on
Commit
e71f8a4
1 Parent(s): 27de518
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -359,7 +359,13 @@ with gr.Blocks() as demo:
359
  👀 <b>Tips for using this demo</b>: <b>(1)</b> Please carefully read the disclaimer in the below. <b>(2)</b> The specification of keywords is optional. If provided, the language model will do its best to plan layouts using the given keywords. <b>(3)</b> If a template is given, the layout planner (M1) is not used. <b>(4)</b> Three operations, including redo, undo, and skip are provided. When using skip, only the left-top point of a keyword will be recorded, resulting in more diversity but sometimes decreasing the accuracy. <b>(5)</b> The layout planner can produce different layouts. You can control the temperature
360
  </h2>
361
 
362
- <img src="https://i.ibb.co/q1hxH0N/architecture.jpg" alt="textdiffuser-2">
 
 
 
 
 
 
363
  </div>
364
  """)
365
 
@@ -373,7 +379,7 @@ with gr.Blocks() as demo:
373
  with gr.Row():
374
  with gr.Column(scale=1):
375
  i = gr.Image(label="Template", type='filepath', value=f'./gray256.jpg', height=256, width=256)
376
- with gr.Column(scale=3):
377
  t = gr.Textbox(label="Template", placeholder='keyword')
378
  redo = gr.Button(value='Redo - Cancel the last keyword') # 如何给b绑定事件
379
  undo = gr.Button(value='Undo - Clear the canvas') # 如何给b绑定事件
 
359
  👀 <b>Tips for using this demo</b>: <b>(1)</b> Please carefully read the disclaimer in the below. <b>(2)</b> The specification of keywords is optional. If provided, the language model will do its best to plan layouts using the given keywords. <b>(3)</b> If a template is given, the layout planner (M1) is not used. <b>(4)</b> Three operations, including redo, undo, and skip are provided. When using skip, only the left-top point of a keyword will be recorded, resulting in more diversity but sometimes decreasing the accuracy. <b>(5)</b> The layout planner can produce different layouts. You can control the temperature
360
  </h2>
361
 
362
+ <style>
363
+ .scaled-image {
364
+ transform: scale(0.75);
365
+ }
366
+ </style>
367
+
368
+ <img src="https://i.ibb.co/q1hxH0N/architecture.jpg" alt="textdiffuser-2" class="scaled-image">
369
  </div>
370
  """)
371
 
 
379
  with gr.Row():
380
  with gr.Column(scale=1):
381
  i = gr.Image(label="Template", type='filepath', value=f'./gray256.jpg', height=256, width=256)
382
+ with gr.Column(scale=1):
383
  t = gr.Textbox(label="Template", placeholder='keyword')
384
  redo = gr.Button(value='Redo - Cancel the last keyword') # 如何给b绑定事件
385
  undo = gr.Button(value='Undo - Clear the canvas') # 如何给b绑定事件