Spaces:
Runtime error
Runtime error
Commit
·
ed34c55
1
Parent(s):
a6fbcef
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ 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 |
-
texto = gr.Textbox()
|
25 |
b_text = gr.Button("Transcribir")
|
|
|
26 |
b_text.click(audio2text, inputs=audio, outputs=texto)
|
27 |
|
28 |
b_trans = gr.Button("Traducir historia")
|
@@ -30,7 +30,7 @@ with demo:
|
|
30 |
b_trans.click(text2eng, inputs=texto, outputs=transcripcion)
|
31 |
|
32 |
b_ner =gr.Button("Search entities")
|
33 |
-
entidades = gr.HighlightedText()
|
34 |
b_ner.click(eng2ner, inputs=transcripcion, outputs=entidades)
|
|
|
35 |
|
36 |
demo.launch()
|
|
|
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 |
b_text = gr.Button("Transcribir")
|
25 |
+
texto = gr.Textbox()
|
26 |
b_text.click(audio2text, inputs=audio, outputs=texto)
|
27 |
|
28 |
b_trans = gr.Button("Traducir historia")
|
|
|
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 |
|
36 |
demo.launch()
|