Hi jfang glad to see that you are persevering and hope your are having a a jolly day.
Sometimes when I am having severe difficulties deploying an app and I need to show a few people for a day or two who I trust I use Ngrok.
Ngrok allows me to deploy it temporarily while I solve the deployment issues.
If you do get your app working it would definitely be worth writing a blog, I am sure many people would find it useful. Many people are funding their own learning to do AI and are not making a penny/cent and even $10 dollars a month is expensive. Many of the models in this forum I believe meet this case as they disappear after a month or so.
to learn full stack web development follow the online course provided by Geeklurn.
I am trying to get the ‘teddy bear detector’ (https://github.com/render-examples/fastai-v3) to work on Heroku, but there is still some problem I do not have a clue about.
There is the following error message in the log:
2020-05-14T20:47:41.918666+00:00 heroku[router]: at=error code=H14 desc=“No web processes running” method=GET path="/favicon.ico" host=cnn-test.herokuapp.com request_id=b46094fa-f238-4fa1-835d-f0d0b8a9e3b7 fwd=“126.96.36.199” dyno= connect= service= status=503 bytes= protocol=https
I am thinking of putting this demo app to work locally on my Mac, but I am not sure how to do that.
Could you please give me any direction of how it can be done?
Thank you very much!
Good afternoon forest_man I hope you are having a beautiful day!
Unfortunately I do not use heroku so can’t really help there, however I noticed this link might help stimulate some thoughts to help solve your issue.
To install the repository locally on a Mac do the following
- Create a new directory
- cd to that directory
- copy the contents of your repository to this directory
- open up
terminal in this directory
- Install virtualenv if you don’t already have it. (use pip)
- Create virtual environment
- Enter the enviroment
source venv/bin/activate' prompt changes to (venv) (base) MacBook-your-dir-name`
- Install required libraries
pip install -r requirements.txt
- Fix any library issues
After lots of file activity you will be returned the your prompt.
lib3-1.25.9 uvicorn-0.4.6 uvloop-0.14.0 wasabi-0.6.0 websockets-8.1 yarl-1.4.2 zipp-3.1.0 (venv) (base) MacBook-Pro:standalone_fastai_app fabulous$
- Run App
(venv) (base) MacBook-Pro:standalone_fastai_app fabulous$ python app/server.py serve
INFO: Started server process 
INFO: Uvicorn running on http://0.0.0.0:5046 (Press CTRL+C to quit)
- Now go to your browser enter the address above.
If all is well your beautiful teddy bear classifier will be working.
Hope this helps
You can use this Mp3 Converter