Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
retkowsky authored May 23, 2024
1 parent 6198682 commit 580c7e8
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions phi-3 vision/Phi3-Vision.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
" I am Phi, an AI developed by Microsoft to assist with providing information, answering questions, and helping users find solutions to their queries.\n"
" I am Phi, an AI developed by Microsoft to assist with providing information, answering questions, and helping users find solutions to their queries. How can I assist you today?\n"
]
}
],
Expand Down Expand Up @@ -223,12 +223,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
" The image captures the iconic Eiffel Tower standing tall against the backdrop of a cityscape during sunset. The skyline is a densely packed array of buildings of various sizes and architectural styles. Trees can be seen interspersed among the buildings, adding a touch of greenery to the urban landscape. The perspective of the photo is from a high vantage point, offering a panoramic view of the city that extends to the horizon. The colors in the image are warm, suggesting it was taken during sunset as indicated by the title \"sa_18378\". The identifier \"sa_18378\" could be a reference to the specific image file or collection it belongs to. The image does not contain any discernible text. The relative positions of the objects in the image indicate a well-planned urban layout with the Eiffel Tower as the central point of interest.\n"
" The image shows a panoramic view of Paris, including iconic landmarks like the Eiffel Tower and the roofs of Parisian buildings.\n"
]
}
],
"source": [
"result = phi3_vision_url(image_url, \"What is shown in this image? Be extremely detailed and specific.\")\n",
"result = phi3_vision_url(image_url, \"What is shown in this image?\")\n",
"print(result)"
]
},
Expand All @@ -242,7 +242,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
" The image depicts the Eiffel Tower, which is a famous landmark in Paris, France. Therefore, the classification for this image is Paris.\n"
" Paris\n"
]
}
],
Expand All @@ -253,15 +253,15 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 10,
"id": "6c8c88c6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" \"Paris skyline at sunset with the Eiffel Tower, a blend of historic and modern architecture, surrounded by lush greenery. 🌅🏰🌳🌉🔥\"\n"
" 🏙️ Paris 🌌 Skyline 🌅 Sunset 📍 Eiffel Tower ☁️\n"
]
}
],
Expand Down Expand Up @@ -405,7 +405,7 @@
{
"data": {
"text/plain": [
"' The image shows a living room setup with a flat-screen TV on a wooden stand. To the left of the TV, there is a tall, slender plant in a woven pot. On the right side of the TV, there are three white baskets, each containing various items. There are also several books stacked on the stand. A black remote is placed on the stand, and a small potted plant is placed next to the TV. A yellow object, possibly a candle holder, is on the right side of the TV. The room has a clean and organized appearance, with a neutral color palette and a modern design.'"
"' The image shows a living room setup with a large floor lamp on the right, a flat-screen TV on the left, and a tall palm-like plant in a woven basket next to the TV. There are also two small potted plants, one on a shelf and the other on the floor. Below the TV, there are three woven baskets on a shelf, and to the right, there are several books stacked.'"
]
},
"execution_count": 15,
Expand Down Expand Up @@ -456,7 +456,7 @@
{
"data": {
"text/plain": [
"\" The image shows a French national identity card. It has a white background with a blue and red flag on the top left corner, indicating it's from France. The card features a portrait of a woman's face on the left side, with the name 'CHEVALLIER' written below it. The right side of the card contains personal details such as nationality, sex, date of birth, place of birth, and alternate name. The card also has a unique identification number and a signature at the bottom.\""
"\" This is a French ID card issued by the French National Identity Card. It includes personal details such as the name 'CHEVALLIER Gisèle, Audrey', date of birth '01 04 1995', and place of birth 'BORDEAUX'. The document also has a signature and a document number 'TZX62TZ79'.\""
]
},
"execution_count": 17,
Expand Down Expand Up @@ -498,7 +498,7 @@
{
"data": {
"text/plain": [
"\" The document is from France, as indicated by the text 'RÉPUBLIQUE FRANÇAISE' at the top of the document.\""
"\" The document is from France, as indicated by the text 'RÉPUBLIQUE FRANÇAISE' at the top of the card.\""
]
},
"execution_count": 19,
Expand All @@ -510,14 +510,6 @@
"phi3_vision_imagefile(image_file, \"What is the country of this document?\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a7f94d1a",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 580c7e8

Please sign in to comment.