title: How to convert a Python file to tflite?
body: <p>I am trying to input nude detection feature for my app using tensorflow lite.</p>
  <p>I found a data set that suitable for my integration. But I have zero experience on python and and tensorflow. Now I need to convert <a href="https://github.com/notAI-tech/NudeNet/blob/v2/nudenet/classifier.py" rel="nofollow noreferrer">this file</a> into tflite.  I used <strong>colab</strong> as a tool.
  and this is what i tried on the tool, But it did not work.</p>
  <pre><code>import tensorflow as tf
  converter = tf.lite.TFLiteConverter.from_saved_model(&quot;classifier.py&quot;)
  tflite_model = converter.convert()
  with open('model.tflite', 'wb') as f: 
  f.write(tflite_model)
  </code></pre>
  <p><a href="https://www.tensorflow.org/lite/convert#python_api" rel="nofollow noreferrer">Reference</a></p>
  <p>I need help to convert <a href="https://github.com/notAI-tech/NudeNet/blob/v2/nudenet/classifier.py" rel="nofollow noreferrer">this file</a> to tflite</p>