Skip to content

Commit

Permalink
chore(ml):READMEを更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoya0902 authored Nov 3, 2023
1 parent e18dc53 commit 229dce5
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions ml/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
## 実行方法
### 準備 : トークンの設定
## 実行方法 : Poetry
### トークン設定
```bash
echo 'OPENAI_API_KEY=your_openai_api_key' >> .env
echo 'HUGGING_FACE_TOKEN=your_huggingface_token' >> .env
```
### モデルのダウンロード
### インストール
```bash
poetry install
poetry run python src/download_model.py
```
### 実行 + テスト
### 実行
```bash
poetry install
poetry run uvicorn src.main:app
poetry poetry run python -m pytest
```

### テスト
```bash
poetry run pytest
```
## 実行方法 : Modal
### 実行
```bash
modal run src/main.py
```
### デプロイ
```bash
poetry run modal deploy src/main.py
```
modal deploy src/main.py
```

0 comments on commit 229dce5

Please sign in to comment.