# How can I adapt this code to deploy it in HuggingFace?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-adapt-this-code-to-deploy-it-in-huggingface%2F54351%3E%5C
**Category:** Beginners\
**Created:** [September 10, 2023, 10:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-adapt-this-code-to-deploy-it-in-huggingface%2F54351 "2023-09-10T22:41:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanovishado](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@ivanovishado](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fivanovishado)%5C
**Post date:** [September 10, 2023, 10:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-adapt-this-code-to-deploy-it-in-huggingface%2F54351%2F1 "2023-09-10T22:41:16Z")

</div>

Hi, all.

I’d like to know how to adapt the following code so that it can take advantage of the HuggingFace libraries and I can upload the model to the Hub more easily and can make use of the Inference API that’s provided for free.

I used to have this custom fine-tuned model providing predictions running on AWS SageMaker but I’d like to explore other alternatives on how to run it.

The code can be found [here](https://github.com/violentometro-online-team/violentometro-online/blob/master/6.%20Deep%20Learning/Violentometro.ipynb).

I’ll appreciate any help!
