2022. 5. 31. 00:46ㆍAbout Me/AI Tech
# Streamlit - FastAPI 연결하기
GitHub - davidefiocco/streamlit-fastapi-model-serving: Simple web app example serving a PyTorch model using streamlit and FastAP
Simple web app example serving a PyTorch model using streamlit and FastAPI - GitHub - davidefiocco/streamlit-fastapi-model-serving: Simple web app example serving a PyTorch model using streamlit an...
github.com
두 모듈이 사용하는 포트가 달라서, Docker Compose를 사용해야 한다.
# python 비동기 처리
상황 : 하나의 .csv 파일에 대해 NER 작업을 하는데 너무 오랜시간이 걸림.
해결책
- argparse 라이브러리로 스크립트화하여, 여러 개의 명령어 실행
- asyncio 라이브러리로 비동기 처리하는 코루틴 이용
argparse — Parser for command-line options, arguments and sub-commands — Python 3.10.4 documentation
argparse — Parser for command-line options, arguments and sub-commands Source code: Lib/argparse.py The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure
docs.python.org
파이썬 코딩 도장: 47.10 asyncio 사용하기
asyncio(Asynchronous I/O)는 비동기 프로그래밍을 위한 모듈이며 CPU 작업과 I/O를 병렬로 처리하게 해줍니다. 동기(synchronous) 처리는 특정 작업이 끝나면 다음 작업을 처리하는 순차처리 방식이고, 비동
dojang.io
## 피드백
설치지옥에 빠졌다..
'About Me > AI Tech' 카테고리의 다른 글
[Week 20- Day 4] 회고 (0) | 2022.06.02 |
---|---|
[Week 20- Day 2] 회고 (0) | 2022.06.01 |
[Week 19- Day 5] 회고 (0) | 2022.05.28 |
[Week 19- Day 4] 회고 (0) | 2022.05.27 |
[Week 19- Day 3] 회고 (0) | 2022.05.25 |