with gr.Box(visible=os.environ.get("SPACE_ID")): is_shared_ui = str(os.environ.get("IS_SHARED_UI", "") or "").strip().lower() not in ("", "0", "false", "none", "no") if is_shared_ui: import torch if not torch.cuda.is_available(): gr.HTML(f"""

▲ 我的網站

""") else: gr.HTML(f"""

▲ 我的網站▲ 我的網站

""") elif os.environ.get("SPACE_ID"): import torch if not torch.cuda.is_available(): gr.HTML(f"""

▲ 我的網站

""") else: gr.HTML(f"""

▲ 我的網站▲ 我的網站

""")