zeimoto commited on
Commit
3239a8e
·
1 Parent(s): aed550f

fixes and updates

Browse files
__pycache__/nameder.cpython-312.pyc ADDED
Binary file (1.28 kB). View file
 
__pycache__/resources.cpython-312.pyc ADDED
Binary file (1.33 kB). View file
 
__pycache__/speech2text.cpython-312.pyc ADDED
Binary file (2.13 kB). View file
 
__pycache__/translation.cpython-312.pyc ADDED
Binary file (1.48 kB). View file
 
translation.py CHANGED
@@ -2,13 +2,6 @@ from transformers import MarianMTModel, MarianTokenizer
2
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
3
  from resources import set_start, audit_elapsedtime
4
 
5
- def get_model_name(languageCode: str) -> str:
6
- match languageCode:
7
- case "pt":
8
- model_name = "Helsinki-NLP/opus-mt-pt-en"
9
-
10
- return model_name
11
-
12
  def translate(text_to_translate: str) -> str:
13
 
14
  start = set_start()
 
2
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
3
  from resources import set_start, audit_elapsedtime
4
 
 
 
 
 
 
 
 
5
  def translate(text_to_translate: str) -> str:
6
 
7
  start = set_start()