# Label studio ml connection with flask application

**URL:** <https://community.labelstud.io/t/label-studio-ml-connection-with-flask-application/239>\
**Category:** Machine Learning\
**Created:** [June 5, 2024, 7:15am UTC](https://community.labelstud.io/t/label-studio-ml-connection-with-flask-application/239 "2024-06-05T07:15:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emre06](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/emre06/32/71_2.png) [@Emre06](https://community.labelstud.io/u/Emre06)\
**Post date:** [June 5, 2024, 7:15am UTC](https://community.labelstud.io/t/label-studio-ml-connection-with-flask-application/239/1 "2024-06-05T07:15:04Z")

</div>

I want to do automatic labeling by adding an ML backend to Label Studio with my YOLO model. I created a Flask project. I added my model from Add model and it makes the predictions correctly. So, my Flask application works correctly. However, I can’t do automatic labeling in Label Studio. I send the predicted data to Label Studio in JSON format, but I can’t do automatic labeling. Can you please help? @sajarin

---

<div class="post-metadata">

**Author:** ![sajarin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/sajarin/32/56_2.png) [@sajarin](https://community.labelstud.io/u/sajarin)\
**Post date:** [June 7, 2024, 7:22pm UTC](https://community.labelstud.io/t/label-studio-ml-connection-with-flask-application/239/2 "2024-06-07T19:22:53Z")

</div>

Thanks for posting here @Emre06,

Can you share the JSON of the predictions that are generated by your model?

You’ve already confirmed this elsewhere but for others reading this thread: Make sure that the model is correctly connected in Label Studio.

- Go to **Settings \> Machine Learning** and verify that the model URL is correct and the connection is active.
- Also make sure the **Interactive preannotations** toggle is enabled.

What happens when you follow the instructions about calling your predict endpoint in this doc? [Label Studio Documentation — Integrate Label Studio into your machine learning pipeline](https://labelstud.io/guide/ml#Get-predictions-from-a-model)
