배워야 산다58 openai.ChatCompletion.create를 사용한 예제 import openai openai.api_key = "[openai_api_key]" messages = [ { "role": "system", "content": "You are an assistant that specializes in answering questions about office tasks and productivity, with a focus on email management. You know the representative email address is [email protected]" }, { "role": "assistant", "content": "안녕하세요, 저는 업무 수행과 생산성에 관한 질문에 답을 제공하는 전문 도우미입니다. 특히 이메일 관리와 관련된 질문을 전문.. 2023. 7. 13. OpenAI 환경구성 - 파이썬 1. 파이썬 설치 https://www.python.org/downloads/ Download Python The official home of the Python Programming Language www.python.org 2. 비주얼스튜디오 코드 설치 https://code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favori.. 2023. 7. 13. OpenAI Platform 사용 시작 https://platform.openai.com/ OpenAI Platform Explore developer resources, tutorials, API docs, and dynamic examples to get the most out of OpenAI's platform. platform.openai.com 1. openai에 계정 생성 2. 오른쪽 상단 > view API Keys 3. create new secret key 2023. 7. 13. 머신러닝 개발을 위한 기술 분류 아래 내용들은 실무가 보이는 머신러닝 & 딥러닝 도서를 참조하여 정리하였고, 몇몇의 인터넷 기사 및 댓글, 개발자커뮤니티, 블로그에서 인상깊은 내용들을 가져왔다 위 첨부는 https://bcho.tistory.com/1177 를 참조해서 가져왔다 문제시 삭제 하겠슴다. 1. 플랫폼 스파크(spark) 하둡 2. 도구 - 주피터 노트북 사용, 인터넷이 안되면 제한적인듯 하다. 현재 대표적 오픈소스로 사용된다 코드와 문서를 동시에 실행하고 작성 가능 파이썬 R, 줄리아 를 지원하며 웹 기반이다. 3. 프레임워크 소개 장점 단점 카페(Caffe) 버클리 인공지능 연구소 코드가 C/C++ 최근 페이스북에서 카페 2 공개 이미지처리 특화 설정파일로 학습 정의 코드없이도 실행 가능 파이썬을 연동을 통한 개발 이미지.. 2020. 4. 5. 개발환경 구축 개발환경 구축은 아래와 같은 순서이다. 1. 아나콘다 & 주피터 환경 구축 - 파이썬 개발환경 2. 텐서플로우 설치 & 실행 확인 - 딥러닝 3. 파이썬 코드로 mysql 연동 - DB 연동확인 아나콘다 공식 홈페이지에서 3.7 버전을 64bit 로 설치해 준다. 주피터는 파이썬 실행 및 개발을 관리해주며, 설치되면 아래의 아이콘을 눌러서 실행하도록한다 ** 아나콘다 프롬프트를 실행하여 jupyter notebook 을 실행하는 것이 정석이지만 이렇게 할 경우 매우 느렸다 아래와 같은 화면이 생성된다. 텐서플로우 설치 ** 아나콘다 프롬프트를 실행하여 아래의 명령어로 설치된 패키지(라이브러리?)를 확인할 수 있다 아래의 명령어를 실행하여 텐서플로우를 설치해 준다 ** 현재는 2.1.0 버전이 설치되며, .. 2020. 3. 30. 인코딩 확인 package test; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.UnsupportedEncodingException; public class encoding { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\bak3018\\Desktop\\password.txt")); String s; while ((s = in.readLine()) != null) { String[] charSet = { "utf-8", "eu.. 2016. 8. 20. 이전 1 2 3 4 5 ··· 10 다음 반응형