with portuguese translation
Browse files
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:
|
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 =
|
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,
|