sergiolucero commited on
Commit
606f31e
1 Parent(s): 582e91a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,10 +9,10 @@ def transcribe(audiofile):
9
  return whisper_transcribe(audiofile)
10
 
11
  def display_text(option):
12
- left = 'LEFT:' + option
13
- right = 'RIGHT:' + option
14
 
15
- return left, right
16
 
17
  df = pd.read_csv('pacientes.csv')
18
  pacientes = list(df['paciente'].unique()) # now contains PAC_ID
 
9
  return whisper_transcribe(audiofile)
10
 
11
  def display_text(option):
12
+ resumen_historial = df[df.paciente==paciente]['Resumen'].iloc[0]
13
+ historial = df[df.paciente==paciente]['EHR'].iloc[0]
14
 
15
+ return resumen_historial, historial
16
 
17
  df = pd.read_csv('pacientes.csv')
18
  pacientes = list(df['paciente'].unique()) # now contains PAC_ID