Skip to content

Jeon-Jinhyeok/LLMDiary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

88 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“– LLM Diary: ๊ฐ์ • ๋ถ„์„ ๊ธฐ๋ฐ˜ ๋‹ค์ด์–ด๋ฆฌ ํ”Œ๋žซํผ

Apache 2.0 Python Django PostgreSQL TailwindCSS Hugging Face Model Docker

๐Ÿ“Œ Table of Contents

๐Ÿ” About the Project

๊ฑฐ๋Œ€ ์–ธ์–ด ๋ชจ๋ธ(LLM)์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž์˜ ์ผ๊ธฐ๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ๊ฐ์ •์„ ๋ถ„์„ํ•˜๊ณ , ์‚ฌ์šฉ์ž์—๊ฒŒ ๊ฐ์ • ํ†ต๊ณ„ ๋ฐ ๋งž์ถคํ˜• ์ƒ๋‹ด์„ ์ œ์•ˆํ•˜๋Š” ์‹œ์Šคํ…œ.

๐Ÿš€ Features

๐Ÿท๏ธROLE

  • User
  • Counselor
  • Admin
  • UserSupporter

๐Ÿ“Š Emotion Analsis

๐Ÿฅ Counsel

  • User can request a consultation, view connselor info
  • Counselor can schedule, conduct, suggest consultations.

๐Ÿ’ป Technologies

๐Ÿ›  Getting Started

0๏ธโƒฃ Pre-requisite

The easiest way to start the LLMDiary is through docker compose. Before running this with the following commands, make sure that Docker and Docker Compose are installed on your machine:

1๏ธโƒฃ Clone the Repository

git clone https://github.com/Jeon-Jinhyeok/LLMDiary.git
cd LLMDiary

2๏ธโƒฃ Download the Model (Hugging Face)

sudo apt install git-lfs
git lfs clone https://huggingface.co/xxhyeok/koBERT-emotion

๐Ÿ’ก ์ฐธ๊ณ : Hugging Face ๋ชจ๋ธ ์ €์žฅ์†Œ์— ์ ‘๊ทผํ•˜๋ ค๋ฉด SSH๋ฅผ ์ด์šฉํ•œ ๋กœ๊ทธ์ธ ์ธ์ฆ์ด ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Hugging Face SSH Key ์„ค์ • ๊ฐ€์ด๋“œ ์ฐธ๊ณ 

3๏ธโƒฃ Configure Environment Variables

  • setup.envํŒŒ์ผ ์ˆ˜์ •
POSTGRES_DB=emotion_diary_db
POSTGRES_USER=admin
POSTGRES_PASSWORD=your-password
POSTGRES_HOST=db
POSTGRES_PORT=5432
DJANGO_SECRET_KEY=your-secret-key
DEBUG=False
ALLOWED_HOSTS=*
  • setup.env ํŒŒ์ผ ์ ์šฉ
source ./setup.env

4๏ธโƒฃ Run with Docker

docker compose up

5๏ธโƒฃ Access the Web Interface

http://localhost:8000

๐Ÿ“Œ Usage

Login Page

image

Diary List with Representative emotion

image

Diary Details

image
  • Diary Details with Result of Emotion Analysis and Recommended Action
  • You can edit or delete the written diary.

Home

image
  • You can check latest Diaries in Home
  • You can check emotional statistics for one week.

๐Ÿ“ง Contact

๐Ÿ“œ License

Apache 2.0


About

Emotion Analysis Diary Using LLM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •