From d0b7c487fc7d69616c3cb50ee0cf5d75f7def5e7 Mon Sep 17 00:00:00 2001 From: Hayden Outlaw Date: Sat, 27 Apr 2024 10:23:50 -0500 Subject: [PATCH] string formatting and cleaning --- nlp/app/routes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nlp/app/routes.py b/nlp/app/routes.py index 492b7cb..8f729a4 100644 --- a/nlp/app/routes.py +++ b/nlp/app/routes.py @@ -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("", "").strip() + control_output = control_output.split(asst_tag)[-1].replace("", "").strip() return render_template('myform.html', title='', form=form, default = default_output, control = control_output, image1 = image_path_mean, image2 = image_path_trans)