parent
ec0d632b39
commit
8ef46266f3
3
main.py
3
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:
|
||||
|
|
Loading…
Reference in New Issue