# How to Use NLU Seq2Seq Model
This guide shows you how to load and use the RC Car Command model from Hugging Face.
## What This Model Does
Converts natural language commands into robot action sequences (JSON format).
Example:
- Input: "drive forward for 5 seconds"
- Output: [{"name":"Forward","args":{"duration":5}},{"name":"Stop","args":{}}]
## Quick Start
### Step 1: Install Required Libraries
```bash
pip install huggingface-hub torch
```
### Step 2: Download and Load Model
```python
from huggingface_hub import hf_hub_download
import torch
import json
# Download model files
model_path = hf_hub_download(
repo_id="Nandhini3737/nlu-seq2seq",
filename="best_model.pt"
)
src_vocab_path = hf_hub_download(
repo_id="Nandhini3737/nlu-seq2seq",
filename="src_vocab.json"
)
tgt_vocab_path = hf_hub_download(
repo_id="Nandhini3737/nlu-seq2seq",
filename="tgt_vocab.json"
)
# Load files
model = torch.load(model_path, map_location='cpu')
with open(src_vocab_path) …