Commit ada5921146ac6be85591cdad392d076dd29e4a99

Authored by Erickson Silva
1 parent 9094524a
Exists in master and in 1 other branch devel

Corrige PortGlosa

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
src/PortGlosa.py
... ... @@ -15,16 +15,16 @@ tradutor = TraduzSentencas()
15 15 taxas = []
16 16  
17 17 def traduzir(texto, log=None, threads=False, taxa_qualidade=False):
18   - tradutor.set_level(log) if log != None else tradutor.desativar_logging()
  18 + #tradutor.set_level(log) if log != None else tradutor.desativar_logging()
19 19 if texto.isspace() or texto == "":
20 20 #or not checar_idioma(texto):
21 21 return "ESCOLHER TEXTO CERTO"
22 22  
23   - elif threads:
24   - return iniciar_com_threads(texto, taxa_qualidade)
  23 + #elif threads:
  24 + # return iniciar_com_threads(texto, taxa_qualidade)
25 25  
26   - else:
27   - return iniciar_sem_threads(texto, taxa_qualidade)
  26 + #else:
  27 + return iniciar_sem_threads(texto, taxa_qualidade)
28 28  
29 29 def iniciar_com_threads(texto, taxa_qualidade):
30 30 texto_quebrado = quebrar_texto(texto)
... ...