cstr commited on
Commit
851f341
Β·
verified Β·
1 Parent(s): 8f692f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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
  """