Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def transcribe(audiofile):
|
|
8 |
#open(filename, 'wb').write(audio)
|
9 |
return whisper_transcribe(audiofile)
|
10 |
|
11 |
-
def display_text(
|
12 |
resumen_historial = df[df.paciente==paciente]['Resumen'].iloc[0]
|
13 |
historial = df[df.paciente==paciente]['EHR'].iloc[0]
|
14 |
|
@@ -33,7 +33,7 @@ with gr.Blocks() as demo:
|
|
33 |
with gr.Column(scale=1):
|
34 |
radio = gr.Radio(choices=pacientes,
|
35 |
label="PACIENTE", value=pacientes[0], interactive=True)
|
36 |
-
with gr.Column(scale=
|
37 |
with gr.Row():
|
38 |
left_text = gr.Markdown()
|
39 |
right_text = gr.Markdown()
|
|
|
8 |
#open(filename, 'wb').write(audio)
|
9 |
return whisper_transcribe(audiofile)
|
10 |
|
11 |
+
def display_text(paciente):
|
12 |
resumen_historial = df[df.paciente==paciente]['Resumen'].iloc[0]
|
13 |
historial = df[df.paciente==paciente]['EHR'].iloc[0]
|
14 |
|
|
|
33 |
with gr.Column(scale=1):
|
34 |
radio = gr.Radio(choices=pacientes,
|
35 |
label="PACIENTE", value=pacientes[0], interactive=True)
|
36 |
+
with gr.Column(scale=4):
|
37 |
with gr.Row():
|
38 |
left_text = gr.Markdown()
|
39 |
right_text = gr.Markdown()
|