Commit b5d19287 authored by Larry Schultheis's avatar Larry Schultheis
Browse files

Static page returns Yay

parent 7ab3c465
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -138,21 +138,3 @@ def loadXY():
    Y = load('Y.joblib')
    
    return X, Y



df = df.drop_duplicates()
data = pd.concat([data, df])
data.columns = ['class', 'text']
#print(data.describe())

#extract features from training data
features = defineFeatures(data)
dump(features, 'features.joblib')

#create feature matrix for training and testing data
X, Y = prepare(features, data)

# for API
def loadXY():
    return [X, Y]
 No newline at end of file
+3 −2
Original line number Diff line number Diff line
@@ -2,14 +2,15 @@
import ml

# Flask import
from flask import Flask
from flask import Flask, send_from_directory
app = Flask(__name__)


@app.route('/')
@app.route('/index')
def display_greeting():
    return "Hey!"
    #return contents of /web/index.html
    return send_from_directory('web', 'index.html')


# Run the app!
+1 −0
Original line number Diff line number Diff line
<h1>It just works</h1>
 No newline at end of file