Spaces:
Runtime error
Runtime error
evertorres-itm
commited on
Commit
•
c8fcb7e
1
Parent(s):
7fb99c3
Update app.py
Browse files
app.py
CHANGED
@@ -21,15 +21,16 @@ demo = gr.Blocks()
|
|
21 |
with demo:
|
22 |
gr.Markdown("Demo sobre historia clínica en español a entidades en ingles")
|
23 |
audio = gr.Audio(sources="microphone", type="filepath")
|
24 |
-
|
25 |
b_text = gr.Button("Transcribir")
|
|
|
26 |
b_text.click(audio2text, inputs=audio, outputs=texto)
|
27 |
|
28 |
b_trans = gr.Button("Traducir historia")
|
29 |
-
transcripcion = gr.Textbox()
|
30 |
b_trans.click(text2eng, inputs=texto, outputs=transcripcion)
|
31 |
|
32 |
b_ner =gr.Button("Search entities")
|
|
|
33 |
b_ner.click(eng2ner, inputs=transcripcion, outputs=entidades)
|
34 |
entidades = gr.HighlightedText()
|
35 |
|
|
|
21 |
with demo:
|
22 |
gr.Markdown("Demo sobre historia clínica en español a entidades en ingles")
|
23 |
audio = gr.Audio(sources="microphone", type="filepath")
|
24 |
+
|
25 |
b_text = gr.Button("Transcribir")
|
26 |
+
texto = gr.Textbox()
|
27 |
b_text.click(audio2text, inputs=audio, outputs=texto)
|
28 |
|
29 |
b_trans = gr.Button("Traducir historia")
|
|
|
30 |
b_trans.click(text2eng, inputs=texto, outputs=transcripcion)
|
31 |
|
32 |
b_ner =gr.Button("Search entities")
|
33 |
+
|
34 |
b_ner.click(eng2ner, inputs=transcripcion, outputs=entidades)
|
35 |
entidades = gr.HighlightedText()
|
36 |
|