FastAPI for text classification problem in Arabic ^^

This simple notebook to deploy machine learning model using FastAPI, I just use the weights of some model I worked on before.
FastAPI Deploy with Covid classification Task

Another one with make_moons sklearn dataset.
FastApi with DecisionTree

5 Likes

Hi Abdelrahman! Welcome to Discourse and thank you very much for sharing your work! I tried the FastAPI Deploy with Covid classification Task in my machine (Mac) and had to revise two things:

  1. Edit the requirments.txt to add pandas and remove pickle. It will result in this list:
sklearn
typing
pydantic
fastapi
pandas
uvicorn
  1. Rename requirments.txt to requirements.txt to match the instructions.

This might help other learners who run into the same errors I ran into.

Thanks again!

1 Like

Thanks @chris.favila , I have updated the repo. Thanks a lot.

1 Like