Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Exploring GPT-3

You're reading from   Exploring GPT-3 An unofficial first look at the general-purpose language processing API from OpenAI

Arrow left icon
Product type Paperback
Published in Aug 2021
Publisher Packt
ISBN-13 9781800563193
Length 296 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Steve Tingiris Steve Tingiris
Author Profile Icon Steve Tingiris
Steve Tingiris
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Understanding GPT-3 and the OpenAI API
2. Chapter 1: Introducing GPT-3 and the OpenAI API FREE CHAPTER 3. Chapter 2: GPT-3 Applications and Use Cases 4. Section 2: Getting Started with GPT-3
5. Chapter 3: Working with the OpenAI Playground 6. Chapter 4: Working with the OpenAI API 7. Chapter 5: Calling the OpenAI API in Code 8. Section 3: Using the OpenAI API
9. Chapter 6: Content Filtering 10. Chapter 7: Generating and Transforming Text 11. Chapter 8: Classifying and Categorizing Text 12. Chapter 9: Building a GPT-3-Powered Question-Answering App 13. Chapter 10: Going Live with OpenAI-Powered Apps 14. Other Books You May Enjoy

Setting up and testing Express

Express is a lightweight but flexible web application framework for Node.js that we'll be using for the app. It's pretty easy to get it up and running, especially with Replit.com. So, the first thing we'll do is get Express set up on Replit.com and test it out. We'll be starting from scratch, so we'll be creating a new repl for GPTAMA.

To create a new Node.js REPL and set up Express, complete the following steps:

  1. Log in at replit.com.
  2. Create a new Node.js REPL named gptanswers-node
  3. In the output pane, click on the Shell tab and enter this command:
    npx express-generator --no-view --force .
  4. Run the previous command by pressing the Enter key and you should see a result that looks like the following screenshot:

    Figure 9.2 – Output from express-generator

    Important note

    The npx command is included with NPM, which is installed with Node.js. It is used to run express-generator, which creates...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime