# How to predict with an imported Keras model

**URL:** <https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011>\
**Category:** DL4J\
**Created:** [September 11, 2022, 8:31pm UTC](https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011 "2022-09-11T20:31:30Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Cherrio-LLC](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/cherrio-llc/32/904_2.png) [@Cherrio-LLC](https://community.konduit.ai/u/Cherrio-LLC)\
**Post date:** [September 16, 2022, 8:15am UTC](https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011/21 "2022-09-16T08:15:21Z")

</div>

@agibsonccc Thanks everything works fine now. Gradle was unable to get the snapshots. I had to download the dependencies using maven then use mavenLocal() in my gradle.

Right now my project is bundled with all the platform dependencies. How can I reduce that?

Thanks for the help so far.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [September 16, 2022, 8:17am UTC](https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011/22 "2022-09-16T08:17:12Z")

</div>

@Cherrio-LLC glad you got it solved! Yeah gradle can be messy. Sorry about that.

---

<div class="post-metadata">

**Author:** ![Cherrio-LLC](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/cherrio-llc/32/904_2.png) [@Cherrio-LLC](https://community.konduit.ai/u/Cherrio-LLC)\
**Post date:** [September 16, 2022, 8:20am UTC](https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011/23 "2022-09-16T08:20:20Z")

</div>

@agibsonccc Thanks once again. I’ve been able to make predictions successfully now.

Is there anyway I can reduce dependencies on platform im not targeting? Just stick with just windows platform??

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [September 16, 2022, 9:30am UTC](https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011/24 "2022-09-16T09:30:23Z")

</div>

@Cherrio-LLC see here: [GitHub - bytedeco/gradle-javacpp: Gradle plugins to automate the build process of JavaCPP and JavaCV](https://github.com/bytedeco/gradle-javacpp)  
If you specify the javacppPlatform (similar to maven’s javacpp.platform) then you should be able to avoid using everything.

[Previous page](https://community.konduit.ai/t/how-to-predict-with-an-imported-keras-model/2011.md?page=1)
