diff --git a/main.py b/main.py index dc2a6af..024421b 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,7 @@ try: from flask import Flask, render_template, request, redirect, url_for, flash, jsonify import json from argparse import ArgumentParser + import threading except ImportError: print('Some modules are missing. Try to install them with "pip3 install -r requirements.txt"') exit() @@ -156,7 +157,7 @@ if __name__ == '__main__': mode = 0 power = True - app.run(host='0.0.0.0', port=80, use_reloader=False, debug=True) + threading.Thread(target=lambda: app.run(host='0.0.0.0', port=80)).start() try: while True: