title: How do I download my model using wget so that I can upload it to streamlit?
body: <p>I saved my emotion detection model as a .h5. It's too big to be uploaded to Github so i uploaded it to dropbox and used wget to download the model, so that I can deploy it to streamlit. This is my code:</p>
  <pre class="lang-py prettyprint-override"><code>if not os.path.exists(&quot;models/emotion_detection_model_for_streamlit.h5&quot;):
      with st.spinner(&quot;Loading model...&quot;):
          os.system(&quot;wget --no-check-certificate -O 
  models/emotion_detection_model_for_streamlit.h5 \&quot;link-to-model&quot;&quot;)
  
  model = tf.keras.models.load_model(&quot;models/emotion_detection_model_for_streamlit.h5&quot;)
  </code></pre>
  <p>When deploying the app via streamlit, I am getting the following error:
  <a href="https://i.stack.imgur.com/WWHFw.png" rel="nofollow noreferrer">link to error message from streamlit</a></p>
  <p>[manager] Python dependencies were installed from /app/emotion-in-motion-2/requirements.txt using pip.
  [manager] Processed dependencies!
  2022-02-11 10:34:22.712519: W tensorflow/stream executor/platform/default/do loader.cc:64] Could not load dynamic library 'libcudart.so.11.0';
  dlerror: libel
  2022-02-11 10:34:22.712601: 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.
  sh: 1: wget: not found
  2022-02-11 10:34:25.828 Uncaught app
  exception
  Traceback (most recent call last):
  File &quot;/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py&quot;
  line 350, in
  <em>run_script
  exec (code, module.</em>
  <em>dict</em>_)
  File &quot;/app/emotion-in-motion-2/app.py&quot;, line 30, in 
  model = tf.keras.models.load_model(&quot;models/emotion_detection_model_for_streamlit.h5&quot;)
  File &quot;/home/appuser/venv/lib/python3.7/site-packages/keras/utils/traceback_utils.py&quot;,
  line 67, in error_handler
  raise e.with_traceback(filtered _tb) from None
  File &quot;/home/appuser/venv/lib/python3.7/site-packages/keras/saving/save.py&quot;
  line 204, in load model
  raise I0Error (f'No file or directory found at {filepath_str}')
  OSError: No file or directory found at models/emotion _detection_model_for_streamlit.h5
  [client] Connecting...
  sh: 1: wget: not found
  2022-02-11 10:34:33.564 Uncaught app exception
  Traceback (most recent call last) :
  File &quot;/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py&quot;
  line 350, in
  <em>run_script
  exec (code, module.
  <em>dict</em>.
  File
  &quot;/app/emotion-in-motion-2/app.py&quot;
  , line 30.
  in
  «module&gt;
  model
  =tf.keras.models.load_model(&quot;models/emotion_detection_model_for_streamlit.h5&quot;)
  File &quot;/home/appuser/venv/lib/python3.7/site-packages/keras/utils/traceback_utils.py&quot;,line67,inerror_handler
  raise e.with_traceback(filtered_tb) from None
  File &quot;/home/appuser/venv/lib/python3.7/site-packages/keras/saving/save.py&quot;,line 204, in load model
  raise I0Error (f' No file or directory found at {filepath_str}'
  OSError: No file or directory found at models/emotion_detection</em> model_for_streamlit.h5</p>
  <p>Please help</p>