carisackc commited on
Commit
a0780a3
·
1 Parent(s): a34a874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -49,7 +49,8 @@ st.sidebar.markdown('Using transformer model')
49
 
50
  ## Loading in dataset
51
  #df = pd.read_csv('mtsamples_small.csv',index_col=0)
52
- df = pd.read_csv('shpi_w_rouge21Nov.csv')
 
53
  #Loading in Admission chief Complaint and diagnosis
54
  df2 = pd.read_csv('cohort_cc_adm_diag.csv')
55
 
@@ -252,7 +253,7 @@ def visualize (run_text,output):
252
 
253
  def run_model(input_text):
254
  if model == "BertSummarizer":
255
- output = original_text['BertSummarizer'].values
256
  st.write('Summary')
257
 
258
  elif model == "BertGPT2":
 
49
 
50
  ## Loading in dataset
51
  #df = pd.read_csv('mtsamples_small.csv',index_col=0)
52
+ #df = pd.read_csv('shpi_w_rouge21Nov.csv')
53
+ df = pd.read_csv('shpi25nov.csv')
54
  #Loading in Admission chief Complaint and diagnosis
55
  df2 = pd.read_csv('cohort_cc_adm_diag.csv')
56
 
 
253
 
254
  def run_model(input_text):
255
  if model == "BertSummarizer":
256
+ output = original_text['BertSummarizer2s'].values
257
  st.write('Summary')
258
 
259
  elif model == "BertGPT2":