Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ai-x-4-a1-final/narrativa_ml
Narrativa ML Repository
https://github.com/ai-x-4-a1-final/narrativa_ml
openai python
Last synced: about 1 month ago
JSON representation
Narrativa ML Repository
- Host: GitHub
- URL: https://github.com/ai-x-4-a1-final/narrativa_ml
- Owner: AI-X-4-A1-FINAL
- License: mit
- Created: 2024-11-07T03:44:14.000Z (about 2 months ago)
- Default Branch: dev
- Last Pushed: 2024-11-22T11:13:40.000Z (about 1 month ago)
- Last Synced: 2024-11-22T12:21:07.494Z (about 1 month ago)
- Topics: openai, python
- Language: Python
- Homepage: http://221.148.97.238:8050/docs
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![NARRATIVA-TITLE](https://github.com/user-attachments/assets/97538156-f202-4b48-8543-9bbf835fda0e)
# Narrativa ML
![Python](https://img.shields.io/badge/Python-v3.12.7-3776AB?style=for-the-badge&logo=python&logoColor=white)
![PyTorch](https://img.shields.io/badge/PyTorch-v2.5.1-EE4C2C?style=for-the-badge&logo=pytorch&logoColor=white)
![FastAPI](https://img.shields.io/badge/FastAPI-v0.115.4-009688?style=for-the-badge&logo=fastapi&logoColor=white)## ποΈ νλ‘μ νΈ μκ°
`Narrativa ML`μ AI κΈ°λ° μ€ν 리 μμ± νλ«νΌμΈ Narrativa νλ‘μ νΈμ AI API λͺ¨λμ λλ€.
μ¬μ©μμ μ λ ₯μ κΈ°λ°μΌλ‘ μ΄μΌκΈ°, μ΄λ―Έμ§, μμ μ μμ±νλ ν΅ν© AI μμ€ν μ ꡬνν©λλ€.### μ£Όμ κΈ°λ₯
- ν μ€νΈ κΈ°λ° μ€ν 리 μμ±
- μ€ν 리 κΈ°λ° μ΄λ―Έμ§ μμ±
- λΆμκΈ°μ λ§λ λ°°κ²½μμ μμ±## ποΈ μ€μΉ κ°μ΄λ
Narrativa_ML νλ‘μ νΈλ₯Ό λ‘컬 νκ²½μμ ν΄λ‘ νκ³ , λΉλ λ° μ€ννλ λ°©λ²μ μ€λͺ ν©λλ€.
### 1. νλ‘μ νΈ ν΄λ‘
```bash
$ git clone https://github.com/AI-X-4-A1-FINAL/Narrativa_ML.git
$ cd narrativa-ml
```### 2. νκ²½ μ€μ
> PyTorch λ° κΈ°ν μμ‘΄μ± μ€μΉλ₯Ό μν΄ Minicondaλ₯Ό μ¬μ©ν©λλ€. μμ§ Condaλ₯Ό μ€μΉνμ§ μμλ€λ©΄, μλ λ§ν¬μμ λ€μ΄λ‘λνμ¬ μ€μΉνμΈμ.
+ [Miniconda λ€μ΄λ‘λ](https://conda-forge.org/download/)
```bash
# Python 3.12 λ²μ μ κ°μνκ²½ μμ±
$ conda create -n narrativa_ml python=3.12# κ°μνκ²½ νμ±ν
$ conda activate narrativa_ml# PyTorch μ€μΉ
$ conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia# μμ‘΄μ± μ€μΉ
$ pip install -r requirements.txt
```### 3. μ€ν
```bash
$ uvicorn main:app --reload# http://localhost:8000
```## ποΈ λΈλμΉ κ΄λ¦¬ κ·μΉ
### λΈλμΉ κ΅¬μ‘°
1. **λ©μΈ λΈλμΉ (main)**
- νλ‘λμ λ°°ν¬μ© μμ λΈλμΉ
- PRμ ν΅ν΄μλ§ λ³ν© κ°λ₯2. **κ°λ° λΈλμΉ (dev)**
- κ°λ° μ€μΈ κΈ°λ₯ ν΅ν© λΈλμΉ
- λ°°ν¬ μ μ΅μ’ ν μ€νΈ μ§ν3. **κΈ°λ₯ λΈλμΉ (feat/)**
- μλ‘μ΄ κΈ°λ₯ κ°λ°μ©
- λͺ λͺ κ·μΉ: `feat/{κΈ°λ₯λͺ }`
- μ: `feat/social-login`4. **κΈ΄κΈ μμ λΈλμΉ (hotfix/)**
- νλ‘λμ κΈ΄κΈ λ²κ·Έ μμ μ©
- λͺ λͺ κ·μΉ: `hotfix/{μ΄μλ²νΈ}`
- μ: `hotfix/critical-bug`### λΈλμΉ μ¬μ© μμ
```bash
# κΈ°λ₯ λΈλμΉ μμ±
git checkout -b feat/social-login# κΈ΄κΈ μμ λΈλμΉ μμ±
git checkout -b hotfix/critical-bug
```## ποΈ API μ€κ³ κ·μΉ
### RESTful API νμ€
#### HTTP λ©μλ
- `GET`: λ°μ΄ν° μ‘°ν
- `POST`: λ°μ΄ν° μμ±
- `PUT`: λ°μ΄ν° μμ
- `DELETE`: λ°μ΄ν° μμ #### μν μ½λ
- `200`: μμ² μ±κ³΅
- `201`: μμ± μ±κ³΅
- `204`: μ±κ³΅ (μλ΅ λ°μ΄ν° μμ)
- `400`: μλͺ»λ μμ²
- `401`: μΈμ¦ μ€ν¨
- `403`: κΆν μμ
- `404`: 리μμ€ μμ
- `409`: λ°μ΄ν° μΆ©λ
- `500`: μλ² μ€λ₯### μλν¬μΈνΈ κ·μΉ
- μλ¬Έμ λ° μΌλ°₯ μΌμ΄μ€ μ¬μ©
- 볡μν 리μμ€ λͺ μ¬ μ¬μ©
- μμ:
- `/users/{user-id}`
- `/games/{game-id}/sessions`### νλΌλ―Έν° κ·μΉ
- 쿼리: μΉ΄λ© μΌμ΄μ€
- `?startDate=2024-11-14`
- κ²½λ‘: μΌλ°₯ μΌμ΄μ€
- `/users/{user-id}`## ποΈ λλ ν 리 ꡬ쑰
```bash
narrativa-ml/
βββ api/
β βββ routes/
β β βββ story.py
β β βββ image.py
β β βββ music.py
β βββ dependencies.py
βββ core/
β βββ config.py
β βββ security.py
βββ models/
β βββ story_generator.py
β βββ image_generator.py
β βββ music_generator.py
βββ tests/
β βββ test_api.py
βββ main.py
βββ requirements.txt
```## ποΈ ν μ 보
### **Team Member**
## ποΈ λ¬Έμ λ° κΈ°μ¬
νλ‘μ νΈμ λν λ¬Έμμ¬νμ΄λ κ°μ μ μμ μ΄μ νμ λ±λ‘ν΄μ£ΌμΈμ.
κΈ°μ¬λ₯Ό μνμλ λΆμ Fork & Pull Requestλ₯Ό ν΅ν΄ μ°Έμ¬ν΄μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€.## ποΈ λΌμ΄μ μ€
μ΄ νλ‘μ νΈλ [MIT λΌμ΄μ μ€](LICENSE)λ₯Ό λ°λ¦ λλ€.
![footer](https://github.com/user-attachments/assets/c30abbd9-8e89-4a4e-8823-33fe0cf843c9)