Skip to content

Commit 47c06ce

Browse files
author
Zhi Zhou
committed
Add another in context learning example image including two apples
1 parent dec8f35 commit 47c06ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Basic_Samples/GPT-4V/in_context_chatcompletions_example_restapi.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@
8888
"\n",
8989
"# System messages and user prompt\n",
9090
"sys_message = \"You are an AI assistant that helps people find information.\"\n",
91-
"user_prompt = \"What is the type of this apple?\"\n",
91+
"user_prompt = \"What are the types of the apple(s) shown in this image?\"\n",
9292
"\n",
9393
"# Encode the image in base64\n",
94-
"image_file_path = \"../../common/images/test_Gala.jpeg\" # Update with your image path\n",
94+
"image_file_path = \"../../common/images/test_Gala.jpeg\" # Another example including two apples: \"../../common/images/two_apples.jpeg\".\n",
9595
"with open(image_file_path, 'rb') as image_file:\n",
9696
" encoded_image = base64.b64encode(image_file.read()).decode('ascii')\n",
9797
" \n",

common/images/two_apples.jpeg

141 KB
Loading

0 commit comments

Comments
 (0)