Wenzheng Chang commited on
Commit
85c6af9
·
1 Parent(s): 900181c

update warning in huggingface

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -870,7 +870,6 @@ def update_task_ui(task):
870
  gr.update(visible=False), # raymap_option
871
  gr.update(visible=False), # post_reconstruction
872
  gr.update(value=1.0), # guidance_scale
873
- gr.update(visible=True), # gpu_time_warning
874
  )
875
  elif task == "prediction":
876
  return (
@@ -884,7 +883,6 @@ def update_task_ui(task):
884
  gr.update(visible=True), # raymap_option
885
  gr.update(visible=True), # post_reconstruction
886
  gr.update(value=3.0), # guidance_scale
887
- gr.update(visible=True), # gpu_time_warning
888
  )
889
  elif task == "planning":
890
  return (
@@ -898,7 +896,6 @@ def update_task_ui(task):
898
  gr.update(visible=False), # raymap_option
899
  gr.update(visible=True), # post_reconstruction
900
  gr.update(value=3.0), # guidance_scale
901
- gr.update(visible=True), # gpu_time_warning
902
  )
903
 
904
 
@@ -1390,13 +1387,17 @@ with gr.Blocks(
1390
  gpu_time_warning = gr.Markdown(
1391
  """
1392
  <div class="warning-box">
1393
- <strong>⚠️ Warning:</strong> Due to HuggingFace Spaces ZERO GPU quota limitations,
1394
- only short video reconstruction tasks (less than 10s) can be completed online.
1395
- For long video reconstruction, prediction, and planning tasks, we strongly
1396
- recommend deploying the model locally to experience the full capabilities of Aether.
 
 
 
 
1397
  </div>
1398
  """,
1399
- visible=False
1400
  )
1401
 
1402
  with gr.Group(elem_classes=["input-section"]):
@@ -1700,7 +1701,6 @@ with gr.Blocks(
1700
  raymap_option,
1701
  post_reconstruction,
1702
  guidance_scale,
1703
- gpu_time_warning,
1704
  ],
1705
  )
1706
 
 
870
  gr.update(visible=False), # raymap_option
871
  gr.update(visible=False), # post_reconstruction
872
  gr.update(value=1.0), # guidance_scale
 
873
  )
874
  elif task == "prediction":
875
  return (
 
883
  gr.update(visible=True), # raymap_option
884
  gr.update(visible=True), # post_reconstruction
885
  gr.update(value=3.0), # guidance_scale
 
886
  )
887
  elif task == "planning":
888
  return (
 
896
  gr.update(visible=False), # raymap_option
897
  gr.update(visible=True), # post_reconstruction
898
  gr.update(value=3.0), # guidance_scale
 
899
  )
900
 
901
 
 
1387
  gpu_time_warning = gr.Markdown(
1388
  """
1389
  <div class="warning-box">
1390
+ <strong>⚠️ Warning:</strong><br>
1391
+ Due to HuggingFace Spaces ZERO GPU quota limitations, only short video reconstruction tasks (less than 100 frames) can be completed online.
1392
+
1393
+ <strong>💻 Recommendation:</strong><br>
1394
+ We strongly encourage you to deploy Aether locally for:
1395
+ • Processing longer video reconstruction tasks
1396
+ • Better performance and full access to prediction and planning tasks
1397
+ Visit our <a href="https://github.com/OpenRobotLab/Aether" target="_blank">GitHub repository</a> for local deployment instructions.
1398
  </div>
1399
  """,
1400
+ visible=True,
1401
  )
1402
 
1403
  with gr.Group(elem_classes=["input-section"]):
 
1701
  raymap_option,
1702
  post_reconstruction,
1703
  guidance_scale,
 
1704
  ],
1705
  )
1706