conflict this
-import os
-
from flask import redirect
from . import api
from .app import Flask
@@ -9,8 +7,8 @@ from .paths import GUI_STATIC_DIR, GUI_PUBLIC_DIR
from .kaldi.interface import KaldiInterface
from pathlib import Path
-def create_app(test_config=None):
+def create_app(test_config=None):
# Setup static resources
# create and configure the app
app = Flask(__name__,
@@ -32,7 +30,6 @@ def create_app(test_config=None):
app.register_blueprint(api.bp)
print(app.url_map)
-
@app.route('/index.html')
def index_file():
"""Redirects to '/' for React."""
