magistrkoljan commited on
Commit
dae11f5
Β·
verified Β·
1 Parent(s): 4f9eed8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -351,10 +351,10 @@ with gr.Blocks() as demo:
351
 
352
  gr.Markdown("### πŸ“¦ Output Files")
353
  with gr.Row(height=40):
354
- with gr.Column():
355
  #gr.Markdown(value=f"[πŸ“₯ Download .ply](file/point_cloud_final.ply)")
356
- download_cameras_button = gr.Button("πŸ“₯ Download Cameras.json")
357
- download_cameras_file = gr.File(label="πŸ“„ Cameras.json")
358
  with gr.Column():
359
  download_model_button = gr.Button("πŸ“₯ Download Pretrained Model (.ply)")
360
  download_model_file = gr.File(label="πŸ“„ Pretrained Model (.ply)")
@@ -384,7 +384,7 @@ with gr.Blocks() as demo:
384
  #render_all_views_button.click(fn=render_all_views, inputs=[scene_dir_state], outputs=[rendered_video_output])
385
  #render_circular_path_button.click(fn=render_circular_path, inputs=[scene_dir_state], outputs=[rendered_video_output])
386
 
387
- download_cameras_button.click(fn=lambda: os.path.join(MODEL_PATH, "cameras.json"), inputs=[], outputs=[download_cameras_file])
388
  download_model_button.click(fn=lambda: os.path.join(STATIC_FILE_SERVING_FOLDER, "point_cloud_final.ply"), inputs=[], outputs=[download_model_file])
389
 
390
 
 
351
 
352
  gr.Markdown("### πŸ“¦ Output Files")
353
  with gr.Row(height=40):
354
+ #with gr.Column():
355
  #gr.Markdown(value=f"[πŸ“₯ Download .ply](file/point_cloud_final.ply)")
356
+ #download_cameras_button = gr.Button("πŸ“₯ Download Cameras.json")
357
+ #download_cameras_file = gr.File(label="πŸ“„ Cameras.json")
358
  with gr.Column():
359
  download_model_button = gr.Button("πŸ“₯ Download Pretrained Model (.ply)")
360
  download_model_file = gr.File(label="πŸ“„ Pretrained Model (.ply)")
 
384
  #render_all_views_button.click(fn=render_all_views, inputs=[scene_dir_state], outputs=[rendered_video_output])
385
  #render_circular_path_button.click(fn=render_circular_path, inputs=[scene_dir_state], outputs=[rendered_video_output])
386
 
387
+ #download_cameras_button.click(fn=lambda: os.path.join(MODEL_PATH, "cameras.json"), inputs=[], outputs=[download_cameras_file])
388
  download_model_button.click(fn=lambda: os.path.join(STATIC_FILE_SERVING_FOLDER, "point_cloud_final.ply"), inputs=[], outputs=[download_model_file])
389
 
390