TSjB commited on
Commit
6e9d47c
·
verified ·
1 Parent(s): 730079c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -352,9 +352,6 @@ def translatePy(text, src_lang='rus_Cyrl', tgt_lang='krc_Cyrl',
352
 
353
  # 5. Translate
354
  def translateProcess(text, from_, to, dialect):
355
- print(from_)
356
- print(to)
357
- print(dialect)
358
 
359
  if dialect == "" or dialect is None:
360
  dialect = "дж\ч"
@@ -362,18 +359,10 @@ def translateProcess(text, from_, to, dialect):
362
  from_ = "Русский язык"
363
  if to == "" or to is None:
364
  to = "Къарачай-Малкъар тил"
365
-
366
- print(from_)
367
- print(to)
368
- print(dialect)
369
 
370
  from_ = "".join(LANGUAGE[LANGUAGE.language == from_].token.to_list())
371
  to = "".join(LANGUAGE[LANGUAGE.language == to].token.to_list())
372
  dialect = "".join(DIALECT[DIALECT.dialect == dialect].short_name.to_list())
373
-
374
- print(from_)
375
- print(to)
376
- print(dialect)
377
 
378
  if from_ == 'krc_Cyrl':
379
  text = toModel(text)
 
352
 
353
  # 5. Translate
354
  def translateProcess(text, from_, to, dialect):
 
 
 
355
 
356
  if dialect == "" or dialect is None:
357
  dialect = "дж\ч"
 
359
  from_ = "Русский язык"
360
  if to == "" or to is None:
361
  to = "Къарачай-Малкъар тил"
 
 
 
 
362
 
363
  from_ = "".join(LANGUAGE[LANGUAGE.language == from_].token.to_list())
364
  to = "".join(LANGUAGE[LANGUAGE.language == to].token.to_list())
365
  dialect = "".join(DIALECT[DIALECT.dialect == dialect].short_name.to_list())
 
 
 
 
366
 
367
  if from_ == 'krc_Cyrl':
368
  text = toModel(text)