Last active
August 1, 2018 08:56
-
-
Save SangHakLee/c79b490deb752a6de5c12f131babea94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
import model | |
sim = None | |
data = '1' | |
@app.route('/') | |
def hello_world(): | |
global sim | |
global data | |
if sim is None: | |
sim = model.similar() | |
data = sim | |
else: | |
sim = data | |
return sim | |
if __name__ == '__main__': | |
app.debug = True | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment