majweldon commited on
Commit
e49a8ec
·
verified ·
1 Parent(s): 398f7be

Update app.py

Browse files

Updated for TS Trauma and SBAR2

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,7 +27,8 @@ def transcribe(audio, history_type):
27
  "Triage": "Triage_Note_Format.txt",
28
  "Full Visit": "Weldon_Full_Visit_Format.txt",
29
  "Psych": "Weldon_Psych_Format.txt",
30
- "SBAR": "SBAR.txt"
 
31
  }
32
 
33
  file_name = history_type_map.get(history_type, "Weldon_Full_Visit_Format.txt")
@@ -107,7 +108,7 @@ def transcribe(audio, history_type):
107
  my_inputs = [
108
  gr.Audio(source="microphone", type="filepath"), #Gradio 3.48.0
109
  #gr.Audio(sources=["microphone"],type="numpy"), #Gradio 4.7.1
110
- gr.Radio(["History","H+P","Impression/Plan","Full Visit","Handover","Psych","EMS","SBAR","Meds Only"], show_label=False),
111
  ]
112
 
113
  ui = gr.Interface(fn=transcribe,
 
27
  "Triage": "Triage_Note_Format.txt",
28
  "Full Visit": "Weldon_Full_Visit_Format.txt",
29
  "Psych": "Weldon_Psych_Format.txt",
30
+ "SBAR": "TS_SBAR2.txt",
31
+ "Trauma": "TS_Trauma.txt"
32
  }
33
 
34
  file_name = history_type_map.get(history_type, "Weldon_Full_Visit_Format.txt")
 
108
  my_inputs = [
109
  gr.Audio(source="microphone", type="filepath"), #Gradio 3.48.0
110
  #gr.Audio(sources=["microphone"],type="numpy"), #Gradio 4.7.1
111
+ gr.Radio(["History","H+P","Impression/Plan","Full Visit","Handover","Psych","EMS","SBAR","Trauma","Meds Only"], show_label=False),
112
  ]
113
 
114
  ui = gr.Interface(fn=transcribe,