Node & Hugging Face
Leon Noel
I ain't know nothin' 'bout no Visa, I was in the park with the gang
Moms be feelin' bad, I try to tell her she is not to blame
No social security, couldn't get a license, but I still didn't complain

Agenda
-
Questions?
-
Let's Talk - Questions
-
Review - CRUD
-
Learn - Express
-
Learn - Hugging Face & Open Models
-
Learn - Build AI App
-
Homework - Build your App
Questions
About last class or life

Express
But First

Blast To The Past
How Does The Internet Work

CRUD
Create (post) - Make something
Read (get) - Get Something
Update (put) - Change something
Delete (delete) - Remove something
What are some Create (post) requests?
What are some Read (get) requests?
What are some Update (put) requests?
What are some Delete (delete) requests?
Let's Build An App with Express

Express
Fast, unopinionated, minimalist web framework for Node.js
With a myriad of HTTP utility methods and middleware at your disposal, creating a robust API is quick and easy.

TODAY WE BUILD

Key Steps
mkdir api-project
cd api-project
npm init
npm install express --save
npm i -D @gradio/client
Setting Up The Project
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html')
})
Serving Up HTML
Hugging Face

Homework
Do: THE BANK
Do: Complete Your Professional Links
Create: Mongo Atlas, Hugging Face, & Postman Accounts
Build: A simple app using an ML Api

RC - Express & Hugging Face
By Leon Noel
RC - Express & Hugging Face
- 73