Spaces:
Sleeping
Sleeping
def recognize_scene(config, system_data): | |
time = system_data['time'] | |
app_name = system_data['app_name'] | |
system_load = system_data['system_load'] | |
# 示例场景识别逻辑,使用系统数据 | |
if "office" in app_name.lower() and system_load < 50: | |
return {'type': 'office'} | |
elif "video" in app_name.lower() and system_load >= 50: | |
return {'type': 'video'} | |
else: | |
return {'type': 'default'} | |