title: UserWarning: The `lr` argument is deprecated, use `learning_rate`
body: <p>I'm trying to train a neural network with textgenrnn but when I run the code it immediately gives me a warning <code>UserWarning: The lr argument is deprecated, use learning_rate</code></p>
  <p>How can I fix this &quot;problem&quot;?</p>
  <p>CODE</p>
  <pre><code>from textgenrnn import textgenrnn
  
  textgen = textgenrnn()
  textgen.train_from_file('my_file.txt', num_epochs=1)
  textgen.generate()
  </code></pre>
  <p>WARNING</p>
  <pre><code>/Users/username/Documents/Develop/Neural2/venv/lib/python3.8/site-packages/tensorflow/python/keras/optimizer_v2/optimizer_v2.py:375: UserWarning: The `lr` argument is deprecated, use `learning_rate` instead.
    warnings.warn(
  2021-08-04 00:34:58.301349: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
  To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
  76 texts collected.
  Training on 1,374 character sequences.
  2021-08-04 00:34:58.861705: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:176] None of the MLIR Optimization Passes are enabled (registered 2)
  
  </code></pre>