Skip to content

Commit 41b1eb2

Browse files
authored
Merge pull request #175 from 000xs/000xs-2
[Documentation] Fixed ading to adding (line 127), corrected grammar in lines 72,80, 281, and 297
2 parents 61bdc43 + e73168d commit 41b1eb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/detect-hotdog-with-hugging-face/detect-hotdog-with-hugging-face.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ python -m pip install flask
6969

7070
## Install Dotenv
7171

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/).
7373

7474
```shell
7575
pip install python-dotenv
7676
```
7777

7878
## Install Requests
7979

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/).
8181

8282
```shell
8383
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
124124

125125
## Add variables to the .env file
126126

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.
128128

129129
```shell
130130
HUGGING_FACE_API_URL=https://api-inference.huggingface.co/models/julien-c/hotdog-not-hotdog
@@ -278,7 +278,7 @@ python3 web.py
278278

279279
## Bonus implement the successor Not Bannana.
280280

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.
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.
282282

283283
## Replace your Url
284284

@@ -294,7 +294,7 @@ Now run the project again and upload bannanas or anything not bannanas.
294294

295295
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!
296296

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/).
298298

299299
## More Resources
300300

0 commit comments

Comments
 (0)