Giter Club home page Giter Club logo

pyml-niigata-openai-api-handson's Introduction

pyml-niigata-openai-api-handson

2023/11/11 (土) Python機械学習勉強会in新潟 ハンズオン教材

準備

1. OpenAI APIキー取得

  1. 以下のサイトでログインします。
  2. 左側メニュー「API Keys」をクリックし、API Keysの画面上にある「Create new secret key」をクリックします。
    • APIキーの名前は、任意のわかりやすい名前にしておきます。
  3. 作成したAPIキーをコピーしておきます。
    • この後使います。

2. openai.env 作成

  1. openai.env.sample ファイルからコピーして、 openai.env ファイルを作成します。
  2. ファイルをエディタで修正します。 <OPENAI APIキー> の部分に、実際のOpenAIのAPIキー文字列を置き換えてください。
OPENAI_API_KEY=<OPENAI APIキー>

3. Google Drive に格納

  1. Google Driveにログインします。
  2. マイドライブ直下に、 openai.env ファイルをアップロードします。

利用方法

  1. Google Colaboratoryのページを開きます。
  2. 「ファイル」「ノートブックを開く」をクリックします。
  3. GitHubから、このリポジトリの中にあるノートブックファイルを開きます。 colab github
  4. ノートブックを開いた後、「ドライブにコピー」しておくと、Googleドライブに保存されます。
    • 「マイドライブ」「Colab Notebooks」に保存されます。

pyml-niigata-openai-api-handson's People

Contributors

kasacchiful avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.