chore(mics): Remove server and port.

Remove server and port.
This commit is contained in:
Xinjie 2025-06-12 22:48:47 +08:00 committed by GitHub
parent e92dc32423
commit f102e963c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View File

@ -498,4 +498,4 @@ with gr.Blocks(delete_cache=(43200, 43200), theme=custom_theme) as demo:
if __name__ == "__main__": if __name__ == "__main__":
demo.launch(server_name="10.34.8.82", server_port=8081) demo.launch()

View File

@ -478,4 +478,4 @@ with gr.Blocks(delete_cache=(43200, 43200), theme=custom_theme) as demo:
if __name__ == "__main__": if __name__ == "__main__":
demo.launch(server_name="10.34.8.82", server_port=8082) demo.launch()

View File

@ -379,4 +379,4 @@ with gr.Blocks(delete_cache=(43200, 43200), theme=custom_theme) as demo:
if __name__ == "__main__": if __name__ == "__main__":
demo.launch(server_name="10.34.8.82", server_port=8083) demo.launch()

View File

@ -20,7 +20,7 @@ import logging
import os import os
import sys import sys
from glob import glob from glob import glob
from shutil import copy, copytree from shutil import copy, copytree, rmtree
import numpy as np import numpy as np
import trimesh import trimesh
@ -294,6 +294,8 @@ if __name__ == "__main__":
# Organize the final result files # Organize the final result files
result_dir = f"{output_root}/result" result_dir = f"{output_root}/result"
if os.path.exists(result_dir):
rmtree(result_dir, ignore_errors=True)
os.makedirs(result_dir, exist_ok=True) os.makedirs(result_dir, exist_ok=True)
copy(urdf_path, f"{result_dir}/{os.path.basename(urdf_path)}") copy(urdf_path, f"{result_dir}/{os.path.basename(urdf_path)}")
copytree( copytree(