TiberiuCristianLeon commited on
Commit
e8deb2f
·
verified ·
1 Parent(s): fa48bf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -46,7 +46,7 @@ models = ["Helsinki-NLP", "QUICKMT", "Argos", "Lego-MT/Lego-MT", "HPLT", "HPLT-O
46
  "BSC-LT/salamandraTA-2b-instruct", "BSC-LT/salamandraTA-7b-instruct",
47
  "utter-project/EuroLLM-1.7B", "utter-project/EuroLLM-1.7B-Instruct",
48
  "Unbabel/Tower-Plus-2B", "Unbabel/TowerInstruct-7B-v0.2", "Unbabel/TowerInstruct-Mistral-7B-v0.2",
49
- "yanolja/YanoljaNEXT-Rosetta-4B-2511", "HuggingFaceTB/SmolLM3-3B",
50
  "winninghealth/WiNGPT-Babel-2-1", "winninghealth/WiNGPT-Babel-2", "winninghealth/WiNGPT-Babel",
51
  "tencent/Hunyuan-MT-7B", "openGPT-X/Teuken-7B-instruct-commercial-v0.4", "openGPT-X/Teuken-7B-instruct-v0.6",
52
  ]
@@ -250,7 +250,6 @@ class Translators:
250
  low_cpu_mem_usage=False, # True
251
  device_map="auto")
252
  tokenizer = AutoTokenizer.from_pretrained(self.model_name)
253
- context = {"tone": "Formal and precise"}
254
  system = f"Translate the user's text to {self.tl}. Provide the final translation in a formal tone immediately immediately without any other text."
255
  messages = [
256
  {"role": "system", "content": system},
 
46
  "BSC-LT/salamandraTA-2b-instruct", "BSC-LT/salamandraTA-7b-instruct",
47
  "utter-project/EuroLLM-1.7B", "utter-project/EuroLLM-1.7B-Instruct",
48
  "Unbabel/Tower-Plus-2B", "Unbabel/TowerInstruct-7B-v0.2", "Unbabel/TowerInstruct-Mistral-7B-v0.2",
49
+ "yanolja/YanoljaNEXT-Rosetta-4B-2511", "yanolja/YanoljaNEXT-Rosetta-4B", "HuggingFaceTB/SmolLM3-3B",
50
  "winninghealth/WiNGPT-Babel-2-1", "winninghealth/WiNGPT-Babel-2", "winninghealth/WiNGPT-Babel",
51
  "tencent/Hunyuan-MT-7B", "openGPT-X/Teuken-7B-instruct-commercial-v0.4", "openGPT-X/Teuken-7B-instruct-v0.6",
52
  ]
 
250
  low_cpu_mem_usage=False, # True
251
  device_map="auto")
252
  tokenizer = AutoTokenizer.from_pretrained(self.model_name)
 
253
  system = f"Translate the user's text to {self.tl}. Provide the final translation in a formal tone immediately immediately without any other text."
254
  messages = [
255
  {"role": "system", "content": system},