qualcosa da dichiarare come descrizione
Project description
OpenAI API Quickstart - Python example app
This is an example pet name generator app used in the OpenAI API quickstart tutorial. It uses the Flask web framework. Check out the tutorial or follow the instructions below to get set up.
Setup
-
If you don’t have Python installed, install it from here.
-
Clone this repository.
-
Navigate into the project directory:
$ cd openai-quickstart-python
-
Create a new virtual environment:
$ python -m venv venv $ . venv/bin/activate
-
Install the requirements:
$ pip install -r requirements.txt
-
Make a copy of the example environment variables file:
$ cp .env.example .env
-
Add your API key to the newly created
.envfile. -
Run the app:
$ flask run
You should now be able to access the app at http://localhost:5000! For the full context behind this example app, check out the tutorial.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openai_quickstart_python-0.4.0.tar.gz.
File metadata
- Download URL: openai_quickstart_python-0.4.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.2 Linux/5.10.0-23-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09bfdb53e608a982453dcc9a58d4473ba48b42adc2c6c179d1fc3e6d31ef425e
|
|
| MD5 |
682b8929650366ae438516d608a5d66a
|
|
| BLAKE2b-256 |
35e36879f2911943dc2ddf6a4a5a2785bd86d66a05883f3493b8022543aad6f6
|
File details
Details for the file openai_quickstart_python-0.4.0-py3-none-any.whl.
File metadata
- Download URL: openai_quickstart_python-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.2 Linux/5.10.0-23-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eb55b4fb53341d92c754c7a3a93796b36a089e7fc7732ad726bf9656074dbe7
|
|
| MD5 |
1c246e85bffce63e30c5761807f90c1a
|
|
| BLAKE2b-256 |
8859ec6f3831095f21bbf71dc8c37141e48af3526a7f299951303a211c285615
|