v
File size: 567 Bytes
bdc09c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# viet-robot-safety-filter

A rule-based safety filter for Vietnamese home-robot commands.

The model flags commands that contain obviously dangerous actions such as
burning, destroying objects, or harming people.

It returns a small dictionary:

```python
{"safe": True/False, "reason": "..."}
```

This is a simple demonstration and should be combined with stronger safety systems in real robots.

## Usage

```python
from model import check_safety

print(check_safety("Bật đèn phòng khách"))
print(check_safety("Đốt rèm cửa đi"))
```

## License

MIT