# Deploying a streamlit app that uses a Tensorflow Model saved in Saved Model format

**URL:** <https://discuss.streamlit.io/t/deploying-a-streamlit-app-that-uses-a-tensorflow-model-saved-in-saved-model-format/46567>\
**Category:** Community Cloud\
**Created:** [July 4, 2023, 6:11pm UTC](https://discuss.streamlit.io/t/deploying-a-streamlit-app-that-uses-a-tensorflow-model-saved-in-saved-model-format/46567 "2023-07-04T18:11:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddharth\_Reddy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/siddharth_reddy/32/27906_2.png) [@Siddharth\_Reddy](https://discuss.streamlit.io/u/Siddharth_Reddy)\
**Post date:** [July 4, 2023, 6:11pm UTC](https://discuss.streamlit.io/t/deploying-a-streamlit-app-that-uses-a-tensorflow-model-saved-in-saved-model-format/46567/1 "2023-07-04T18:11:14Z")

</div>

I’m trying to build an app that loads a model that is saved in Tensorflow’s SavedModel Format. The app is rendering correctly and loading the model when I do it from my end. I successfully managed to push the model to GitHub using GitLFS(Because the model is bigger than 1GB). The app has deployed successfully, but the moment I try to load the model in the deployed app, it crashes instantly. The deployment logs after the app crashed are shown below. Please suggest anything that I can do, so that I don’t run into these issues

```auto
2023-07-04 17:04:10.968606: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.

```

```auto
2023-07-04 17:04:11.007242: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.

```

```auto
2023-07-04 17:04:11.008726: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.

```

```auto
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.

```

```auto
2023-07-04 17:04:11.978552: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT

```

```auto
[17:06:41] ❗️ Streamlit server consistently failed status checks

```

---

<div class="post-metadata">

**Author:** ![Caroline](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/caroline/32/38736_2.png) [@Caroline](https://discuss.streamlit.io/u/Caroline)\
**Post date:** [July 14, 2023, 4:25pm UTC](https://discuss.streamlit.io/t/deploying-a-streamlit-app-that-uses-a-tensorflow-model-saved-in-saved-model-format/46567/2 "2023-07-14T16:25:17Z")

</div>

Hey @Siddharth_Reddy,

Thanks for sharing this question! It sounds like your app is most likely crashing on Community Cloud due to resource usage exceeding the 1GB limit – if you can share the link to the app, I can double-check / share more info on what the resource usage for that app looks like.

---

<div class="post-metadata">

**Author:** ![Siddharth\_Reddy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/siddharth_reddy/32/27906_2.png) [@Siddharth\_Reddy](https://discuss.streamlit.io/u/Siddharth_Reddy)\
**Post date:** [July 15, 2023, 6:42am UTC](https://discuss.streamlit.io/t/deploying-a-streamlit-app-that-uses-a-tensorflow-model-saved-in-saved-model-format/46567/3 "2023-07-15T06:42:36Z")

</div>

Hi Caroline. Thank you for your reply. I fixed my issue, and yes you are correct, my app was exceeding the resource usage limit of 1GB. I have now deployed my app to Huggingface spaces and it works perfectly!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [July 17, 2023, 5:54pm UTC](https://discuss.streamlit.io/t/deploying-a-streamlit-app-that-uses-a-tensorflow-model-saved-in-saved-model-format/46567/4 "2023-07-17T17:54:03Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
