Search icon CANCEL
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
Hands-On Python Deep Learning for the Web

You're reading from   Hands-On Python Deep Learning for the Web Integrating neural network architectures to build smart web apps with Flask, Django, and TensorFlow

Arrow left icon
Product type Paperback
Published in May 2020
Publisher Packt
ISBN-13 9781789956085
Length 404 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Sayak Paul Sayak Paul
Author Profile Icon Sayak Paul
Sayak Paul
Anubhav Singh Anubhav Singh
Author Profile Icon Anubhav Singh
Anubhav Singh
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface Artificial Intelligence on the Web
Demystifying Artificial Intelligence and Fundamentals of Machine Learning FREE CHAPTER Using Deep Learning for Web Development
Getting Started with Deep Learning Using Python Creating Your First Deep Learning Web Application Getting Started with TensorFlow.js Getting Started with Different Deep Learning APIs for Web Development
Deep Learning through APIs Deep Learning on Google Cloud Platform Using Python DL on AWS Using Python: Object Detection and Home Automation Deep Learning on Microsoft Azure Using Python Deep Learning in Production (Intelligent Web Apps)
A General Production Framework for Deep Learning-Enabled Websites Securing Web Apps with Deep Learning DIY - A Web DL Production Environment Creating an E2E Web App Using DL APIs and Customer Support Chatbot Other Books You May Enjoy Appendix: Success Stories and Emerging Areas in Deep Learning on the Web

Using reCAPTCHA in web applications with Python

To add the reCAPTCHA to the website, we first need to obtain the API keys from the Google reCAPTCHA console:

  1. First, log in to your Google account and go to https://www.google.com/recaptcha.
  2. Next, click on Admin Console at the top-right. 
  3. Add your site to the console by following the steps shown on your screen. If you're testing on your local system, you'll have to specify 127.0.0.1 as one of the URLs.
  4. Obtain the API keys for your domain.

    The screen that you get your domain's API keys on should look similar to the following screenshot:

  1. Now, add the secret key to the settings.py file of the web app, as shown: 
GOOGLE_RECAPTCHA_SECRET_KEY = '6Lfi6ncUAAAAANJYkMC66skocDgA1REblmx0-3B2'
  1. Next, we need to add the scripts to be loaded to the add.html template. We'll add it to the billboard...
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