수어 사진을 MLflow에서 관리하는 모델을 통해 예측한 후 GPT로 응답 문장을 생성한다
주관 : KT 소속 : KT 에이블스쿨 4기 수도권 1반 3조 프로젝트 기간 : 2023-11-28 ~ 2024-12-07
-
Django 앱 페이지 구현
-
ChatGPT API 연결
-
MLflow로 모델 관리
-
AWS로 서버 배포
열기
Mini-project-7
├─ .gitignore
├─ accounts
│ ├─ admin.py
│ ├─ apps.py
│ ├─ forms.py
│ ├─ migrations
│ │ ├─ 0001_initial.py
│ │ └─ __init__.py
│ ├─ models.py
│ ├─ templates
│ │ └─ registration
│ │ ├─ login.html
│ │ ├─ passsword_reset_confirm.html
│ │ ├─ passsword_reset_form.html
│ │ ├─ password_change_done.html
│ │ ├─ password_change_form.html
│ │ ├─ profile.html
│ │ └─ signup.html
│ ├─ tests.py
│ ├─ urls.py
│ ├─ views.py
│ └─ __init__.py
├─ db.sqlite3
├─ manage.py
├─ mlflow.db
├─ mysite
│ ├─ asgi.py
│ ├─ settings.py
│ ├─ urls.py
│ ├─ wsgi.py
│ └─ __init__.py
├─ README.md
├─ requirements.txt
├─ requirements_linux.txt
├─ selfchatgpt
│ ├─ admin.py
│ ├─ apps.py
│ ├─ migrations
│ │ └─ __init__.py
│ ├─ models.py
│ ├─ static
│ │ └─ abc
│ │ └─ style.css
│ ├─ templates
│ │ └─ selfgpt
│ │ ├─ index.html
│ │ └─ result.html
│ ├─ tests.py
│ ├─ urls.py
│ ├─ views.py
│ └─ __init__.py
├─ selfsignlanguagetochatgpt
│ ├─ admin.py
│ ├─ apps.py
│ ├─ migrations
│ │ ├─ 0001_initial.py
│ │ └─ __init__.py
│ ├─ models.py
│ ├─ static
│ │ └─ selflanguage
│ │ ├─ chat_style.css
│ │ └─ style.css
│ ├─ templates
│ │ └─ selflanguagechat
│ │ ├─ index.html
│ │ └─ result.html
│ ├─ tests.py
│ ├─ urls.py
│ ├─ views.py
│ └─ __init__.py
├─ static
│ └─ css
│ └─ styles.css
└─ templates
├─ index.html
└─ layout.html
- 요구 패키지 설치
pip install -r requirements.txt
- 환경 변수 입력 key.config 파일을 루트 폴더 아래에 생성
CHATGPT_KEY= # https://platform.openai.com/settings/profile?tab=api-keys
- 데이터베이스로 장고ORM 마이그레이션
python manage.py migrate
- 장고 서버 실행
python manage.py runserver
- 관리자 계정 생성
python manage.py createsuperuser