feat: dockerize app and unify query management UI
This commit is contained in:
@@ -68,7 +68,7 @@ FILE_BRAND_MAP: Dict[str, str] = {
|
||||
FILE_DEFAULT_DEVICE_TYPE: Dict[str, str] = {
|
||||
"mitv_cn": "tv",
|
||||
"mitv_global_en": "tv",
|
||||
"xiaomi-wear": "other",
|
||||
"xiaomi-wear": "wear",
|
||||
"apple_all": "phone",
|
||||
"apple_all_en": "phone",
|
||||
"apple_cn": "phone",
|
||||
@@ -159,23 +159,29 @@ TABLET_KEYWORDS = [
|
||||
"平板",
|
||||
"matepad",
|
||||
]
|
||||
OTHER_KEYWORDS = [
|
||||
WEAR_KEYWORDS = [
|
||||
"watch",
|
||||
"smartwatch",
|
||||
"手表",
|
||||
"手环",
|
||||
"band",
|
||||
"wear",
|
||||
"wearable",
|
||||
"buds",
|
||||
"earbuds",
|
||||
"耳机",
|
||||
"tws",
|
||||
"eyewear",
|
||||
"glasses",
|
||||
"眼镜",
|
||||
]
|
||||
OTHER_KEYWORDS = [
|
||||
"matebook",
|
||||
"笔记本",
|
||||
"laptop",
|
||||
"notebook",
|
||||
"vision",
|
||||
"vr",
|
||||
"glass",
|
||||
"眼镜",
|
||||
"ipod",
|
||||
"airpods",
|
||||
]
|
||||
@@ -290,6 +296,8 @@ def infer_device_type(
|
||||
return "tv"
|
||||
if has_keyword(corpus, TABLET_KEYWORDS):
|
||||
return "tablet"
|
||||
if has_keyword(corpus, WEAR_KEYWORDS):
|
||||
return "wear"
|
||||
if has_keyword(corpus, OTHER_KEYWORDS):
|
||||
return "other"
|
||||
if has_keyword(corpus, PHONE_KEYWORDS):
|
||||
|
||||
Reference in New Issue
Block a user