Shuang59 commited on
Commit
f5e0fc3
β€’
1 Parent(s): 6900dfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -154,10 +154,7 @@ def compose_pointe(prompt, weights, version):
154
  render.scene.add_geometry('mesh', mesh, mat)
155
 
156
  def generate_images():
157
- for i in range(64):gr.Markdown(
158
- """<p>( <b>Note</b>: For composing CLEVR objects, we recommend using <b><i>x</i></b> in range <b><i>[0.1,
159
- 0.9]</i></b> and <b><i>y</i></b> in range <b><i>[0.25, 0.7]</i></b>, since the training dataset labels are in
160
- given ranges.)</p><hr>""")
161
  # Rotation
162
  R = mesh.get_rotation_matrix_from_xyz((0, 0, np.pi / 32))
163
  mesh.rotate(R, center=(0, 0, 0))
@@ -329,8 +326,8 @@ with gr.Blocks() as demo:
329
  </td>
330
  <td>
331
  <figure>
332
- <img src="https://media.giphy.com/media/lTzdW41bFnrD8AYa0K/giphy.gif" style="text-align:center; width:100%; display:block; margin:auto;">
333
- <figcaption style="color: black; font-size: 15px; text-align: center;">"A toilet" <span style="color: red">AND</span> "A chair"</figcaption>
334
  </figure>
335
  </td>
336
  <td>
 
154
  render.scene.add_geometry('mesh', mesh, mat)
155
 
156
  def generate_images():
157
+ for i in range(64):
 
 
 
158
  # Rotation
159
  R = mesh.get_rotation_matrix_from_xyz((0, 0, np.pi / 32))
160
  mesh.rotate(R, center=(0, 0, 0))
 
326
  </td>
327
  <td>
328
  <figure>
329
+ <img src="https://media.giphy.com/media/LDmNSM9NmNpaljMKiF/giphy.gif" style="text-align:center; width:100%; display:block; margin:auto;">
330
+ <figcaption style="color: black; font-size: 15px; text-align: center;">"A chair" <span style="color: red">AND NOT</span> "Chair legs"</figcaption>
331
  </figure>
332
  </td>
333
  <td>