Docfile commited on
Commit
e56b4a2
·
verified ·
1 Parent(s): c09ce27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -40,13 +40,14 @@ model = genai.GenerativeModel(
40
  )
41
 
42
  source_languages = ["Francais", "English", "Spanish"]
43
- target_languages = ['nzebi', 'Fang(ntumu)','Fang(complet)','dikota', 'yipunu', 'omyene_nkomi']
44
 
45
  lang_files = {
46
  'nzebi': 'Inzèbi.txt',
47
  'gisir': 'Gisir.txt',
48
  'dikota': 'dd.txt',
49
  'yipunu': 'yipunu.pdf',
 
50
  'Fang(complet)':'document_modifie.pdf',
51
  'akele': 'Akélé.txt',
52
  'Ghétsogo': 'Ghétsogo.txt',
@@ -105,7 +106,7 @@ async def translate(input_text, source, target):
105
  Using the provided Fang language reference PDF, translate the following text:
106
  Input text: {input_text}
107
 
108
- Please provide only the translation without any additional explanation.
109
  """
110
 
111
  print(input_text)
 
40
  )
41
 
42
  source_languages = ["Francais", "English", "Spanish"]
43
+ target_languages = ['nzebi', 'Fang(ntumu)','Fang(complet)','dikota','yipunu(léger)', 'yipunu', 'omyene_nkomi']
44
 
45
  lang_files = {
46
  'nzebi': 'Inzèbi.txt',
47
  'gisir': 'Gisir.txt',
48
  'dikota': 'dd.txt',
49
  'yipunu': 'yipunu.pdf',
50
+ 'yipunu(léger)':'yipunu_free.txt'
51
  'Fang(complet)':'document_modifie.pdf',
52
  'akele': 'Akélé.txt',
53
  'Ghétsogo': 'Ghétsogo.txt',
 
106
  Using the provided Fang language reference PDF, translate the following text:
107
  Input text: {input_text}
108
 
109
+ Please provide only the translation without any additional explanation. et si tu ne trouve pas l'équivalent d'un mot réécris le tout simplement.
110
  """
111
 
112
  print(input_text)