Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
amyj0rdan committed May 21, 2019
2 parents fbf8c73 + f975fc3 commit ac2154d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from prediction import *
import base64
import re
from keras import backend as K

app = Flask(__name__)

Expand All @@ -31,7 +32,9 @@ def predict():
drawing = Drawing(new_image)
drawing = drawing.reshape()
prediction = Prediction(drawing)
return prediction.predict()
predictionNow = prediction.predict()
K.clear_session()
return predictionNow

if __name__ == "__main__":
app.run(debug=True)

0 comments on commit ac2154d

Please sign in to comment.