Skip to content

Commit

Permalink
string formatting and cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
outlawhayden committed Apr 27, 2024
1 parent c996f07 commit d0b7c48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nlp/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ def index():
#proba = clf.predict_proba(X)[0].max()
flash(input_field)


default_output = "default_output"
control_output = "control_output"
default_output = default_output.split(asst_tag)[-1].replace("</s>", "").strip()
control_output = control_output.split(asst_tag)[-1].replace("</s>", "").strip()

return render_template('myform.html', title='', form=form,
default = default_output, control = control_output, image1 = image_path_mean, image2 = image_path_trans)
Expand Down

0 comments on commit d0b7c48

Please sign in to comment.