zeimoto commited on
Commit
bf32783
1 Parent(s): 8786bb1

with portuguese translation

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,14 +30,14 @@ def named_entity_recognition(req: NER_Request):
30
  def get_lead(audio: bytes, labels: str, input_text: str):
31
  print("audio",audio,type(audio))
32
  print("input text:",input_text)
33
- print("labels:2",labels)
34
  start = set_start()
35
  labels_list = ast.literal_eval(labels)
36
  if audio == None:
37
  text = input_text
38
  else:
39
  transcribe = transcription(audio)
40
- text = transcribe#translate = translation_to_english(transcribe)
41
  lead_input.value = text
42
  ner = named_entity_recognition(NER_Request(
43
  entities=labels_list,
 
30
  def get_lead(audio: bytes, labels: str, input_text: str):
31
  print("audio",audio,type(audio))
32
  print("input text:",input_text)
33
+ print("labels:",labels)
34
  start = set_start()
35
  labels_list = ast.literal_eval(labels)
36
  if audio == None:
37
  text = input_text
38
  else:
39
  transcribe = transcription(audio)
40
+ text = translation_to_english(transcribe)
41
  lead_input.value = text
42
  ner = named_entity_recognition(NER_Request(
43
  entities=labels_list,