feat: XID 권장 조치사항의 영문 원문 및 한글 번역 동시 제공 및 UI 이원화(st.tabs)
This commit is contained in:
+7
-1
@@ -31,6 +31,8 @@ class XidEvent:
|
||||
severity: str = "info"
|
||||
description: str = ""
|
||||
action: str = ""
|
||||
action_ko: str = ""
|
||||
action_en: str = ""
|
||||
gpu_index: int = -1
|
||||
gpu_name: str = ""
|
||||
gpu_serial: str = ""
|
||||
@@ -41,12 +43,16 @@ class XidEvent:
|
||||
self.name = xid_info["name"]
|
||||
self.severity = xid_info["severity"]
|
||||
self.description = xid_info["description"]
|
||||
self.action = xid_info["action"]
|
||||
self.action = xid_info.get("action_ko", xid_info.get("action", ""))
|
||||
self.action_ko = xid_info.get("action_ko", xid_info.get("action", ""))
|
||||
self.action_en = xid_info.get("action_en", "NVIDIA official documentation does not specify a detailed action for this code.")
|
||||
else:
|
||||
self.name = f"Unknown XID {self.xid_code}"
|
||||
self.severity = "warning"
|
||||
self.description = f"XID {self.xid_code}에 대한 정보가 데이터베이스에 없습니다."
|
||||
self.action = "NVIDIA 공식 문서에서 해당 XID 코드를 확인하세요."
|
||||
self.action_ko = "NVIDIA 공식 문서에서 해당 XID 코드를 확인하세요."
|
||||
self.action_en = "Please check this XID code in NVIDIA official documentation."
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user