title: load pre-trained model using flask in CPU
body: <p>I trained a model using machine learning algorithms, and I want to deploy this model using Flask. but as ı don't have GPU I am using my computer CPU to load the model and that's where I am getting errors. how I can ignore GPU?</p>
  <p><strong>load.py</strong></p>
  <pre><code>import numpy as np
  import keras.models
  from keras.models import model_from_json
  import tensorflow as tf
  
  def model():
      json_file = open(&quot;model.json&quot;,'r')
      load_json_model = json_file.read()
      json_file.close()
  
      load_model = model_from_json(load_json_model)
      load_model.load_weights(&quot;model.h5&quot;)
  
      load_model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
  
  
  </code></pre>
  <p><strong>errors</strong></p>
  <pre><code>2021-02-13 10:48:53.891534: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
  2021-02-13 10:48:53.907500: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
  
  self._handle = _dlopen(self._name, mode)
  OSError: [WinError 126] The specified module could not be found
  </code></pre>