multimodalart HF Staff commited on
Commit
b5c1d6f
·
verified ·
1 Parent(s): dca85e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -141,7 +141,8 @@ def infer_camera_edit(
141
 
142
  # --- UI ---
143
  css = '''#col-container { max-width: 800px; margin: 0 auto; }
144
- .dark .progress-text{color: white !important}'''
 
145
 
146
  is_reset = gr.State(value=False)
147
 
@@ -238,10 +239,15 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
238
  ["monkey.jpg", None, -45, 5, 0, False, 0, True, 1.0, 4, 704, 1024],
239
  ["metropolis.jpg", None, 0, 0, -1, True, 0, True, 1.0, 4, 816, 1024],
240
  ],
241
- inputs=inputs,
 
 
 
 
242
  outputs=outputs,
243
  fn=infer_camera_edit,
244
  cache_examples="lazy",
 
245
  )
246
 
247
  # Image upload triggers dimension update and control reset
 
141
 
142
  # --- UI ---
143
  css = '''#col-container { max-width: 800px; margin: 0 auto; }
144
+ .dark .progress-text{color: white !important}
145
+ #examples{max-width: 800px; margin: 0 auto; }'''
146
 
147
  is_reset = gr.State(value=False)
148
 
 
239
  ["monkey.jpg", None, -45, 5, 0, False, 0, True, 1.0, 4, 704, 1024],
240
  ["metropolis.jpg", None, 0, 0, -1, True, 0, True, 1.0, 4, 816, 1024],
241
  ],
242
+ inputs=[
243
+ image, prev_output, rotate_deg, move_forward,
244
+ vertical_tilt, wideangle,
245
+ seed, randomize_seed, true_guidance_scale, num_inference_steps, height, width
246
+ ],
247
  outputs=outputs,
248
  fn=infer_camera_edit,
249
  cache_examples="lazy",
250
+ elem_id="examples"
251
  )
252
 
253
  # Image upload triggers dimension update and control reset