I have followed this tutorial. It was working fine with until, in my __init__.py file, I import my recognizer file
from flask import Flask
import sys
sys.path.append('/home/directory/')
from KNN_Recognition import trainCode //this line
app = Flask(__name__)
@app.route('/')
def homepage():
return "Hi there, how ya doin?"
if __name__ == "__main__":
app.run()
Now my webpage is not loading at all. Please Help. I have run the KNN_Recognition.py independently and it is working without any error.
Also instead of using libapache2-mod-wsgi, I have used libapache2-mod-wsgi-py3