feat: Google Drive API 인증 및 에러 처리 개선

This commit is contained in:
2025-08-28 11:58:36 +09:00
parent 59d213ab4a
commit f0ddc5aebe
4 changed files with 66 additions and 15 deletions

View File

@@ -6,13 +6,13 @@
- Hugging Face 모델 (jxm/gpt-oss-20b-base)을 사용하여 AI 에이전트 실행
- 웹 크롤링을 통한 정보 수집
- 수집된 데이터의 Google Drive 저장
- 수집된 데이터의 Google Drive 저장 (마운트 방식 기본, API 선택)
- Colab Pro 환경에서 A100 GPU 활용
## 요구사항
- Python 3.8 이상
- Google Drive API 인증 파일 (credentials.json)
- (옵션) Google Drive API 인증 파일 (credentials.json)
- Colab Pro 계정 (A100 GPU 지원)
## 설치 방법
@@ -23,15 +23,18 @@ pip install -r requirements.txt
## 설정
1. `config.json` 파일에서 다음 항목들을 설정하세요:
- `google_drive_folder_id`: 데이터를 저장할 Google Drive 폴더 ID
- `google_credentials_path`: Google API 인증 파일 경로
1. `config.json` 파일 설정:
- `data_storage.drive_mount_path`: 기본 저장 경로 (마운트 방식)
- (옵션) `google_drive_folder_id`: Google Drive API 업로드 대상 폴더 ID
- (옵션) `google_credentials_path`: Google API 인증 파일 경로
2. Google Drive API 설정:
2. (옵션) Google Drive API 설정:
- Google Cloud Console에서 Drive API 활성화
- OAuth 2.0 클라이언트 ID 생성
- credentials.json 파일 다운로드
credentials.json 또는 folder_id가 없으면 API 업로드는 자동 비활성화되고, 마운트 방식 저장만 사용됩니다.
## 실행 방법
자세한 실행 방법은 `run_guide.md` 파일을 참고하세요.