Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -576,6 +576,19 @@ gradio_desc = """This tool translates datasets using the WMT21 translation model
|
|
| 576 |
## 💭 What Does This Tool Do:
|
| 577 |
- Translates datasets based on the selected model type.
|
| 578 |
- Uploads the translated dataset to Hugging Face.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 579 |
## 🛠️ Backend:
|
| 580 |
The translation backend runs on the Hugging Face Hub API.
|
| 581 |
"""
|
|
|
|
| 576 |
## 💭 What Does This Tool Do:
|
| 577 |
- Translates datasets based on the selected model type.
|
| 578 |
- Uploads the translated dataset to Hugging Face.
|
| 579 |
+
## 📊 Dataset Model Types:
|
| 580 |
+
- **mix**:
|
| 581 |
+
- `prompt`: List of dictionaries with 'content' and 'role' fields (multi-turn conversation).
|
| 582 |
+
- `chosen`: Single dictionary with 'content' and 'role' fields.
|
| 583 |
+
- `rejected`: Single dictionary with 'content' and 'role' fields.
|
| 584 |
+
- **orpo**:
|
| 585 |
+
- `prompt`: String (user input).
|
| 586 |
+
- `chosen`: List of dictionaries with 'content' and 'role' fields.
|
| 587 |
+
- `rejected`: List of dictionaries with 'content' and 'role' fields.
|
| 588 |
+
- **ufb**:
|
| 589 |
+
- `prompt`: String (user input).
|
| 590 |
+
- `chosen`: List of dictionaries with 'content' and 'role' fields.
|
| 591 |
+
- `rejected`: List of dictionaries with 'content' and 'role' fields.
|
| 592 |
## 🛠️ Backend:
|
| 593 |
The translation backend runs on the Hugging Face Hub API.
|
| 594 |
"""
|