-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
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 | ||
``` |