You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/detect-hotdog-with-hugging-face/detect-hotdog-with-hugging-face.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,15 +69,15 @@ python -m pip install flask
69
69
70
70
## Install Dotenv
71
71
72
-
We also have install the `dotenv` library which we use to load environment variables. You can find the package link [here](https://pypi.org/project/python-dotenv/).
72
+
We also have to install the `dotenv` library which we use to load environment variables. You can find the package link [here](https://pypi.org/project/python-dotenv/).
73
73
74
74
```shell
75
75
pip install python-dotenv
76
76
```
77
77
78
78
## Install Requests
79
79
80
-
The last package we have to add is `requests` which is a library to handle http requests. You can find the package link [here](https://pypi.org/project/requests/).
80
+
The last package we need to add is `requests` which is a library to handle http requests. You can find the package link [here](https://pypi.org/project/requests/).
81
81
82
82
```shell
83
83
pip install python-dotenv
@@ -124,7 +124,7 @@ Create an `.env` file at the root of the project. This is where we will place ou
124
124
125
125
## Add variables to the .env file
126
126
127
-
Open the `.env` file and add `HUGGING_FACE_API_URL= `and `HUGGING_FACE_API_KEY=`, ading in your API key and URL. This is where we place the hugging face data to allow us to use hugging face's models.
127
+
Open the `.env` file and add `HUGGING_FACE_API_URL= `and `HUGGING_FACE_API_KEY=`, adding in your API key and URL. This is where we place the hugging face data to allow us to use hugging face's models.
The not\_hot\_dog model was originally created by Julien C at https://huggingface.co/julien-c. Now the fun thing is you can actually train your own version of the model which we can save for another time, but in the meantime you can replace your `HUGGING_FACE_API_URL` with one I created for not bannanas. Just upload pictures of Bannanas instead of hot dogs.
281
+
The not\_hot\_dog model was originally created by Julien C at https://huggingface.co/julien-c. Now the fun thing is you can actually train your own version of the model, which we can save for another time, but in the meantime you can replace your `HUGGING_FACE_API_URL` with one I created for not bannanas. Just upload pictures of Bannanas instead of hot dogs.
282
282
283
283
## Replace your Url
284
284
@@ -294,7 +294,7 @@ Now run the project again and upload bannanas or anything not bannanas.
294
294
295
295
You did it, you are a Silicon Valley Legend just like Jian Yang, and now we have two APIs that can detect whether something is not a hot dog or is not a bannana. If you keep this innovation up you will be raising money from Top VCs like Peter Gregory at Raviga and be on your way to be the next Hooli or Pied Piper. Thanks for reading!
296
296
297
-
Hope you enjoyed the tutorial. If you have any questions, reach out to me on my linkedin [andrewryanvanbeek](https://www.linkedin.com/in/andrewryanvanbeek). Also if you interested in following what I am personally building check out [Dev-Docs](https://dev-docs.typedream.app/).
297
+
Hope you enjoyed the tutorial. If you have any questions, reach out to me on my linkedin [andrewryanvanbeek](https://www.linkedin.com/in/andrewryanvanbeek). Also if you are interested in following what I am personally building check out [Dev-Docs](https://dev-docs.typedream.app/).
0 commit comments