Skip to content

Instantly share code, notes, and snippets.

@enakai00
Created September 6, 2023 00:34
Show Gist options
  • Select an option

  • Save enakai00/49cce5bbf2765d8499b51406a19c3c4c to your computer and use it in GitHub Desktop.

Select an option

Save enakai00/49cce5bbf2765d8499b51406a19c3c4c to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "f227fa69-f3f0-487f-afa7-358adcde2d2d",
"metadata": {},
"source": [
"### 事前準備"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "059b361b-c7e5-4ffa-a943-df6c9c2b76f4",
"metadata": {},
"outputs": [],
"source": [
"import base64\n",
"import json\n",
"import requests\n",
"import google\n",
"\n",
"PROJECT_ID = !gcloud config get-value project"
]
},
{
"cell_type": "markdown",
"id": "3f6f974b-4d01-4d25-a3dd-ef0a758320f5",
"metadata": {},
"source": [
"### テスト画像の準備"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "04b714ed-c4b3-4c78-810f-3b148269c348",
"metadata": {},
"outputs": [],
"source": [
"!wget -q -O image.jpg \\\n",
"https://upload.wikimedia.org/wikipedia/commons/e/ec/Larry_Page_in_the_European_Parliament%2C_17.06.2009_%28cropped%29.jpg"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "29cbf7fa-8972-4430-a78e-0264aa698570",
"metadata": {},
"outputs": [
{
"data": {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment