Open yotamhc opened 6 months ago
I encountered the exact same issue here, has there been any solutions?
Me 3...
I got it! Install Python 3.11 in your .venv, and update the requirements.txt like so to install the contemporary version of the needed files:
matplotlib==3.8.0 opencv-python-headless==4.8.0.76 numpy==1.26.0 Flask==3.0.0 tensorflow=-2.14.0
If you get a flask error about Flask, then reinstall flask: python -m pip install flask
For this error, if it still happens, be sure you're in the right directory when running py.app, for example I changed to ~/Documents/projects/lego-detector (master)
File "/Users/user/code/lego-detector/app.py", line 9, in
To post image files, etc. read the readme.md carefully. My flask server is working and accepts image uploads, but I'm getting a server error with the /guess_lego part now that I'm trying to figure out.
Weird, I had an error right up on starting the app with the keras model. Do you just run the app.py or is there a framework you should run instead? Im not familiar with python, but for example when you develop a web app with js you don't just run the index.js, but you start the server with node.js.
Oh and @gad-zooks you started the app from the root directory, right? I mean not from inside the .venv directory, but from the root of the whole repo.
Hi, thanks a lot for this project! I tried to test it and I can't run
app.py
.I get the following error:
I installed all required packages. Any idea what is going wrong?