bryanmildort commited on
Commit
8756057
·
1 Parent(s): 34a9b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -11,15 +11,11 @@ def summarize_function(notes):
11
  st.write('Summary: ')
12
  return gen_text
13
 
14
- @st.cache
15
- def notes_select():
16
- notes_df = pd.read_csv('notes_small.csv')
17
- examples_tuple = ()
18
- for i in range(len(notes_df)):
19
- examples_tuple += (f"Patient {i+1}", )
20
- return st.sidebar.selectbox('Example', (examples_tuple), index=0)
21
-
22
- example = notes_select()
23
 
24
  st.markdown("<h1 style='text-align: center; color: #489DDB;'>GPT Clinical Notes Summarizer</h1>", unsafe_allow_html=True)
25
  st.markdown("<h6 style='text-align: center; color: #489DDB;'>by Bryan Mildort</h1>", unsafe_allow_html=True)
 
11
  st.write('Summary: ')
12
  return gen_text
13
 
14
+ notes_df = pd.read_csv('notes_small.csv')
15
+ examples_tuple = ()
16
+ for i in range(len(notes_df)):
17
+ examples_tuple += (f"Patient {i+1}", )
18
+ example = st.sidebar.selectbox('Example', (examples_tuple), index=0)
 
 
 
 
19
 
20
  st.markdown("<h1 style='text-align: center; color: #489DDB;'>GPT Clinical Notes Summarizer</h1>", unsafe_allow_html=True)
21
  st.markdown("<h6 style='text-align: center; color: #489DDB;'>by Bryan Mildort</h1>", unsafe_allow_html=True)