GokulNC commited on
Commit
650608e
·
verified ·
1 Parent(s): 313d635

Add language list

Browse files
Files changed (1) hide show
  1. README.md +6 -2
README.md CHANGED
@@ -51,6 +51,10 @@ Learn more about Sarvam-Translate in our detailed [blog post](https://www.sarvam
51
  - **Versatile Format Handling**: Processes a wide array of input formats, including markdown, digitized content (handling OCR errors), documents with embedded math and chemistry equations, and code files (translating only comments).
52
  - **Context-Aware & Inclusive**: Engineered to respect different contexts, formats, styles (formal/informal), and ensure inclusivity (e.g., appropriate gender attribution).
53
 
 
 
 
 
54
  ## Quickstart
55
  The following code snippet demonstrates how to use Sarvam-Translate using Transformers.
56
  ```python
@@ -125,10 +129,10 @@ model = models.data[0].id
125
 
126
  tgt_lang = 'Hindi'
127
  input_txt = 'Be the change you wish to see in the world.'
128
- messages = [{"role": "system", "content": f"Translate the text below to {tgt_lang}"}, {"role": "user", "content": input_txt}]
129
 
130
 
131
- response = client.chat.completions.create(model=model, messages=messages)
132
  output_text = response.choices[0].message.content
133
 
134
  print("Input:", input_txt)
 
51
  - **Versatile Format Handling**: Processes a wide array of input formats, including markdown, digitized content (handling OCR errors), documents with embedded math and chemistry equations, and code files (translating only comments).
52
  - **Context-Aware & Inclusive**: Engineered to respect different contexts, formats, styles (formal/informal), and ensure inclusivity (e.g., appropriate gender attribution).
53
 
54
+ ## Supported languages list
55
+
56
+ `Assamese`, `Bengali`, `Bodo`, `Dogri`, `Gujarati`, `English`, `Hindi`, `Kannada`, `Kashmiri`, `Konkani`, `Maithili`, `Malayalam`, `Manipuri`, `Marathi`, `Nepali`, `Odia`, `Punjabi`, `Sanskrit`, `Santali`, `Sindhi`, `Tamil`, `Telugu`, `Urdu`
57
+
58
  ## Quickstart
59
  The following code snippet demonstrates how to use Sarvam-Translate using Transformers.
60
  ```python
 
129
 
130
  tgt_lang = 'Hindi'
131
  input_txt = 'Be the change you wish to see in the world.'
132
+ messages = [{"role": "system", "content": f"Translate the text below to {tgt_lang}."}, {"role": "user", "content": input_txt}]
133
 
134
 
135
+ response = client.chat.completions.create(model=model, messages=messages, temperature=0.01)
136
  output_text = response.choices[0].message.content
137
 
138
  print("Input:", input_txt)