Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
The Applied TensorFlow and Keras Workshop

You're reading from  The Applied TensorFlow and Keras Workshop

Product type Book
Published in Jul 2020
Publisher Packt
ISBN-13 9781800201217
Pages 174 pages
Edition 1st Edition
Languages
Authors (2):
Harveen Singh Chadha Harveen Singh Chadha
Profile icon Harveen Singh Chadha
Luis Capelo Luis Capelo
Profile icon Luis Capelo
View More author details

4. Productization

Activity 4.01: Deploying a Deep Learning Application

Solution:

In this activity, we deploy our model as a web application locally. This allows us to connect to the web application using a browser or to use another application through the application's HTTP API. You can find the code for this activity at https://packt.live/2Zdor2S.

  1. Using your Terminal, navigate to the cryptonic directory and build the Docker images for all the required components:
    $ docker build --tag cryptonic:latest .
    $ docker build --tag cryptonic-cache:latest       cryptonic-cache/

    Those two commands build the two images that we will use in this application: cryptonic (containing the Flask application) and cryptonic-cache (containing the Redis cache).

  2. After building the images, identify the docker-compose.yml file and open it in a text editor. Change the BITCOIN_START_DATE parameter to a date other than 2017-01-01:
    BITCOIN_START_DATE = # Use other date here
  3. As a final step...
lock icon The rest of the chapter is locked
arrow left Previous Chapter
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 $15.99/month. Cancel anytime}