streamlit으로 배포 하기
https://yeomss.tistory.com/301
[Streamlit] 설치 및 시작하기 + 배포
개요 공식 사이트 https://streamlit.io/ Streamlit • The fastest way to build and share data apps Streamlit is an open-source app framework for Machine Learning and Data Science teams. Create beautiful web apps in minutes. streamlit.io streamlit 공
yeomss.tistory.com
위 블로그를 보고 웹 배포 했다.
배포 시 유의사항을 몇 가지 기록해둔다.
0. streamlit 설치
pip3 install streamlit
streamlit 실행 방법
streamlit run <파이썬 파일명.py>
1. 연동된 깃허브에 requirements.txt 파일은 필수다.
당연하지만, custom module은 requirements에 적으면 안 된다.
2. 깃헙 정보 입력시 유의사항.
깃헙 레포 정보를 적을 때 폴더 안에 실행할 python 파일이 있으면 main file path가 안 먹힌다. 대신에 url을 복사해서 넣으면 된다.
streamlit 사이트에서 로그인하고, New app을 클릭하면 Deploy an app 페이지가 나온다.
3. 배포 후 public 전환
배포 후 share에서 public으로 바꿔야지 해당 주소로 다른 사람들도 접근할 수 있다.
object detection 대회를 하던 중 리더보드 0점을 방지하기 위해 mAP를 비교해주는 계산기를 만들었다.
아래 주소로 공유한다.
https://tolfromj-map-calculator-calculatormap-calculator-last-ivlsp9.streamlit.app/