From 9c6ae25ea20d1763f6d064f807b83528a85c9be2 Mon Sep 17 00:00:00 2001 From: lauragreemko Date: Mon, 10 Oct 2022 10:17:57 +0200 Subject: [PATCH] removed empty condition --- app/app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/app.py b/app/app.py index 11eda10..3df0e53 100644 --- a/app/app.py +++ b/app/app.py @@ -23,11 +23,8 @@ def predict(): prediction = model.predict(df['text']) prediction = prediction[0] - print(prediction) if prediction == '0': prediction = 'The sentiment of this tweet is positive' - elif prediction == '': - return render_template('index.html') else: prediction = 'The sentiment of this tweet is negative' return render_template('predict.html', predict=prediction)