Fixed missing dependency for useInputImage
This commit is contained in:
parent
7c7daf8ade
commit
2e5590f74c
@ -16,7 +16,7 @@ export default function useInputImage() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchInputImage()
|
fetchInputImage()
|
||||||
}, [])
|
}, [fetchInputImage])
|
||||||
|
|
||||||
return inputImage
|
return inputImage
|
||||||
}
|
}
|
||||||
|
4
main.py
4
main.py
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user