Health Agent는 건강 관련 정보를 제공하는 챗봇 애플리케이션입니다. 이 프로젝트는 Streamlit과 OpenAI API를 사용하여 구축되었습니다.
- Python 3.8 이상 (ex. 3.9.6)
- OpenAI API Key
-
저장소를 클론하기
git clone https://github.com/HealthAgent/health_agent_api.git cd health_agent_api -
필요한 패키지 설치
pip install -r requirements.txt
-
각자 디렉터리로 이동
cd ds #js, hj, dh
-
OpenAI API Key를 설정(생략 가능):
.streamlit/secrets.toml파일을 생성하고 다음과 같이 API 키를 추가
[openai] api_key = "your_api_key_here"
-
터미널에서 다음 명령어를 실행
streamlit run main.py
-
자동 실행 or 웹 브라우저에서
http://localhost:8501로 접속 -
연결 종료:
control + C
- 사이드바에서 OpenAI API Key를 입력 (toml 파일 생성 시 자동 입력 됩니다)