Fixed missing dependency for useInputImage

This commit is contained in:
blessedcoolant 2022-03-25 14:05:13 +13:00
parent 7c7daf8ade
commit 2e5590f74c
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ export default function useInputImage() {
useEffect(() => { useEffect(() => {
fetchInputImage() fetchInputImage()
}, []) }, [fetchInputImage])
return inputImage return inputImage
} }

View File

@ -162,7 +162,9 @@ def main():
if args.gui: if args.gui:
app_width, app_height = args.gui_size app_width, app_height = args.gui_size
ui = FlaskUI(app, width=app_width, height=app_height) ui = FlaskUI(app, width=app_width, height=app_height)
ui.run() import threading
thread = threading.Thread(target=ui.run)
# ui.run()
else: else:
app.run(host="127.0.0.1", port=args.port, debug=args.debug) app.run(host="127.0.0.1", port=args.port, debug=args.debug)