# using prodigy.serve for textcat.batch-train

**URL:** <https://support.prodi.gy/t/using-prodigy-serve-for-textcat-batch-train/1405>\
**Category:** Uncategorized\
**Tags:** api, solved\
**Created:** [April 16, 2019, 5:48pm UTC](https://support.prodi.gy/t/using-prodigy-serve-for-textcat-batch-train/1405 "2019-04-16T17:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [May 6, 2019, 8:25pm UTC](https://support.prodi.gy/t/using-prodigy-serve-for-textcat-batch-train/1405/12 "2019-05-06T20:25:17Z")

</div>

Btw, no idea why I didn’t think of this earlier but… `prodigy.serve` is really mostly intended for _serving_ the Prodigy application. The `batch_train` recipe is just a regular function, so the easiest way to use it is to import it and call it as a function.

```python
from prodigy.recipes.textcat import batch_train

batch_train(...) # etc.

```

---

_[View the full topic](https://support.prodi.gy/t/using-prodigy-serve-for-textcat-batch-train/1405)._
