Duy-Anh Dang commited on
Commit
fe86c4e
·
1 Parent(s): dff423d

edited app.py to take 2 arg for load_data

Browse files
Files changed (2) hide show
  1. .gitignore +2 -1
  2. app.py +2 -2
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
  __pycache__/
2
  /.DS_Store
3
- /.streamlit/
 
 
1
  __pycache__/
2
  /.DS_Store
3
+ /.streamlit/
4
+ CI_RATES.csv
app.py CHANGED
@@ -211,11 +211,11 @@ if st.button('Generate Predictions'):
211
  placeholder.text('Loading Data...')
212
 
213
  # Starting predictions
214
- #bucket='emailcampaignmodeldata'
215
  # file_key = 'fullEmailBody/fullemailtextbody_labeled_3rates_8tones_20220524.csv'
216
 
217
  # email_data = utils.get_files_from_aws(bucket,file_key)
218
- #tone_key = 'ModelSADataSets/Tone_and_target.csv'
219
  tone_data = FunctionsModelSA_V1.load_data(bucket,tone_key)
220
  test_predictions,tones = FunctionsModelSA_V1.convert_text_to_tone(input_text)
221
 
 
211
  placeholder.text('Loading Data...')
212
 
213
  # Starting predictions
214
+ bucket='emailcampaignmodeldata'
215
  # file_key = 'fullEmailBody/fullemailtextbody_labeled_3rates_8tones_20220524.csv'
216
 
217
  # email_data = utils.get_files_from_aws(bucket,file_key)
218
+ tone_key = 'ModelSADataSets/Tone_and_target.csv'
219
  tone_data = FunctionsModelSA_V1.load_data(bucket,tone_key)
220
  test_predictions,tones = FunctionsModelSA_V1.convert_text_to_tone(input_text)
221