SFM2001 commited on
Commit
d40f128
·
1 Parent(s): 2b4f5e0

Changes to be committed:

Browse files

modified: __pycache__/create_app.cpython-312.pyc
modified: create_app.py
modified: views/__pycache__/infer.cpython-312.pyc
modified: views/infer.py

__pycache__/create_app.cpython-312.pyc CHANGED
Binary files a/__pycache__/create_app.cpython-312.pyc and b/__pycache__/create_app.cpython-312.pyc differ
 
create_app.py CHANGED
@@ -36,6 +36,7 @@ def load_models():
36
  def create_app():
37
  set_seed(42)
38
  load_models()
 
39
  app = Flask(__name__)
40
  app.config.from_pyfile('configs.py')
41
  db.init_app(app)
 
36
  def create_app():
37
  set_seed(42)
38
  load_models()
39
+ print("MODEL LOADED")
40
  app = Flask(__name__)
41
  app.config.from_pyfile('configs.py')
42
  db.init_app(app)
views/__pycache__/infer.cpython-312.pyc CHANGED
Binary files a/views/__pycache__/infer.cpython-312.pyc and b/views/__pycache__/infer.cpython-312.pyc differ
 
views/infer.py CHANGED
@@ -32,6 +32,7 @@ def infer():
32
 
33
  @infer_bp.route('/', methods=['GET', 'POST'])
34
  def index():
 
35
  set_seed(42)
36
  if request.method == 'POST':
37
  topic = request.form['topic'].strip()
 
32
 
33
  @infer_bp.route('/', methods=['GET', 'POST'])
34
  def index():
35
+ print("INPUT??")
36
  set_seed(42)
37
  if request.method == 'POST':
38
  topic = request.form['topic'].strip()