alexnasa commited on
Commit
13b49d9
·
verified ·
1 Parent(s): d0a30b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -22
app.py CHANGED
@@ -265,12 +265,6 @@ if __name__ == "__main__":
265
  """
266
  with gr.Blocks(css=css, title="AnySplat Demo", theme=theme) as demo:
267
 
268
- gr.Markdown(
269
- """ # AnySplat – Feed-forward 3D Gaussian Splatting from Unconstrained Views
270
-
271
- • Source: [Github](https://github.com/OpenRobotLab/AnySplat)
272
- • HF Space by : [@alexandernasa](https://twitter.com/alexandernasa/) """
273
- )
274
 
275
  target_dir_output = gr.Textbox(label="Target Dir", visible=False, value="None")
276
  is_example = gr.Textbox(label="is_example", visible=False, value="None")
@@ -280,6 +274,14 @@ if __name__ == "__main__":
280
  image_type = gr.Textbox(label="image_type", visible=False, value="None")
281
 
282
  with gr.Column(elem_id="col-container"):
 
 
 
 
 
 
 
 
283
  with gr.Row():
284
  with gr.Column():
285
  input_video = gr.Video(label="Upload Video", interactive=True)
@@ -287,6 +289,22 @@ if __name__ == "__main__":
287
  file_count="multiple",
288
  label="Upload Images",
289
  interactive=True,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  )
291
 
292
  image_gallery = gr.Gallery(
@@ -320,22 +338,6 @@ if __name__ == "__main__":
320
  autoplay=True,
321
  )
322
 
323
- with gr.Row():
324
- submit_btn = gr.Button(
325
- "Reconstruct", scale=1, variant="primary"
326
- )
327
- clear_btn = gr.ClearButton(
328
- [
329
- input_video,
330
- input_images,
331
- reconstruction_output,
332
- target_dir_output,
333
- image_gallery,
334
- rgb_video,
335
- depth_video,
336
- ],
337
- scale=1,
338
- )
339
 
340
  # ---------------------- Examples section ----------------------
341
 
 
265
  """
266
  with gr.Blocks(css=css, title="AnySplat Demo", theme=theme) as demo:
267
 
 
 
 
 
 
 
268
 
269
  target_dir_output = gr.Textbox(label="Target Dir", visible=False, value="None")
270
  is_example = gr.Textbox(label="is_example", visible=False, value="None")
 
274
  image_type = gr.Textbox(label="image_type", visible=False, value="None")
275
 
276
  with gr.Column(elem_id="col-container"):
277
+
278
+
279
+ gr.Markdown(
280
+ """ # AnySplat – Feed-forward 3D Gaussian Splatting from Unconstrained Views
281
+
282
+ • Source: [Github](https://github.com/OpenRobotLab/AnySplat) """
283
+ )
284
+
285
  with gr.Row():
286
  with gr.Column():
287
  input_video = gr.Video(label="Upload Video", interactive=True)
 
289
  file_count="multiple",
290
  label="Upload Images",
291
  interactive=True,
292
+ visible=False
293
+ )
294
+ submit_btn = gr.Button(
295
+ "Reconstruct", scale=1, variant="primary"
296
+ )
297
+ clear_btn = gr.ClearButton(
298
+ [
299
+ input_video,
300
+ input_images,
301
+ reconstruction_output,
302
+ target_dir_output,
303
+ image_gallery,
304
+ rgb_video,
305
+ depth_video,
306
+ ],
307
+ scale=1,
308
  )
309
 
310
  image_gallery = gr.Gallery(
 
338
  autoplay=True,
339
  )
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
 
342
  # ---------------------- Examples section ----------------------
343