다음 명령어를 실행하여 필요한 종속성을 설치합니다:
pip install fastapi transformers torch uvicornpython api.py애플리케이션이 실행되면 다음에서 API에 접속할 수 있습니다:
http://127.0.0.1:8000FastAPI 문서 : https://fastapi.tiangolo.com/
Hugging Face Transformers 문서 : https://huggingface.co/docs/transformers/index
PyTorch 설치 가이드 : https://pytorch.org/get-started/locally/