Merged
Conversation
- main.py, db.py, config.py, routers/home.py에서 불필요한 주석 삭제
- 7가지 및 5가지 감정 상태를 나타내는 상수 LABELS_7, LABELS_5 추가
- 모델 디렉토리 설정을 위한 "model_dir" 필드 추가 및 os.getenv를 활용한 환경변수 기능 적용 - API 제목을 "MovieMood - KoBERT Emotion API"로 수정
- 감정 예측을 위한 POST 및 GET 엔드포인트 생성 - 텍스트 기반 감정 확률 계산 및 MongoDB 저장 로직 구현 - 예측 기록 조회 기능 추가
- KoBERT 모델 기반 텍스트 감정 예측 함수 predict_emotions 구현 - 토크나이저 및 모델 로드 로직 포함
- 감정 분석 결과 및 텍스트 데이터를 나타내는 TextItem, Prediction 모델 추가
- predict 라우터를 FastAPI 애플리케이션에 등록 - uvicorn import 위치 조정
- LABELS_7 및 LABELS_5의 "joy"를 "happiness"로 변경 - LABELS_6 상수 추가
- MODEL_DIR 기본값을 "models/0712_kobert_5_emotion_model"로 변경
- LABELS_6과 LABELS_5의 항목 순서 재정렬 - 오타 "LABLES_5"를 "LABELS_5"로 수정
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📣 Related Issue
5, 6, 7개 감정으로 comment를 분류하는 KoBERT 모델 생성
🙏 Question & PR point
대용량 모델 파일을 받기 위해서 아래 절차 실행 필요함.