jaifar530 commited on
Commit
fe2bd7f
·
unverified ·
1 Parent(s): 152158c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -249,29 +249,29 @@ if press_me_button:
249
 
250
  # Choose the appropriate model based on word count
251
  if 10 <= word_count <= 34:
252
- file_prefix = 'truncated_10_to_34'
253
  elif 35 <= word_count <= 59:
254
- file_prefix = 'truncated_35_to_59'
255
  elif 60 <= word_count <= 84:
256
- file_prefix = 'truncated_60_to_84'
257
  elif 85 <= word_count <= 109:
258
- file_prefix = 'truncated_85_to_109'
259
  elif 110 <= word_count <= 134:
260
- file_prefix = 'truncated_110_to_134'
261
  elif 135 <= word_count <= 159:
262
- file_prefix = 'truncated_135_to_159'
263
  elif 160 <= word_count <= 184:
264
- file_prefix = 'truncated_160_to_184'
265
  elif 185 <= word_count <= 209:
266
- file_prefix = 'truncated_185_to_209'
267
  elif 210 <= word_count <= 234:
268
- file_prefix = 'truncated_210_to_234'
269
  elif 235 <= word_count <= 259:
270
- file_prefix = 'truncated_235_to_259'
271
  elif 260 <= word_count <= 284:
272
- file_prefix = 'truncated_260_to_284'
273
  else:
274
- file_prefix = 'not_trancated_full_paragraph'
275
 
276
  # Load the models and vectorizer
277
  ridge_model = load_model(f"{file_prefix}_ridge_model.pkl")
 
249
 
250
  # Choose the appropriate model based on word count
251
  if 10 <= word_count <= 34:
252
+ file_prefix = 'truncated_10_to_34.xlsx'
253
  elif 35 <= word_count <= 59:
254
+ file_prefix = 'truncated_35_to_59.xlsx'
255
  elif 60 <= word_count <= 84:
256
+ file_prefix = 'truncated_60_to_84.xlsx'
257
  elif 85 <= word_count <= 109:
258
+ file_prefix = 'truncated_85_to_109.xlsx'
259
  elif 110 <= word_count <= 134:
260
+ file_prefix = 'truncated_110_to_134.xlsx'
261
  elif 135 <= word_count <= 159:
262
+ file_prefix = 'truncated_135_to_159.xlsx'
263
  elif 160 <= word_count <= 184:
264
+ file_prefix = 'truncated_160_to_184.xlsx'
265
  elif 185 <= word_count <= 209:
266
+ file_prefix = 'truncated_185_to_209.xlsx'
267
  elif 210 <= word_count <= 234:
268
+ file_prefix = 'truncated_210_to_234.xlsx'
269
  elif 235 <= word_count <= 259:
270
+ file_prefix = 'truncated_235_to_259.xlsx'
271
  elif 260 <= word_count <= 284:
272
+ file_prefix = 'truncated_260_to_284.xlsx'
273
  else:
274
+ file_prefix = 'not_trancated_full_paragraph.xlsx'
275
 
276
  # Load the models and vectorizer
277
  ridge_model = load_model(f"{file_prefix}_ridge_model.pkl")