AI Solution

Ask Questions and Get Answers About Uploaded Photos Using GenAI

Introduction

The human eye can usually decipher the contents and meaning of a straightforward photograph. Now, with generative AI’s capability to identify and interpret vast amounts of data, computer systems can emulate this task.

This solution will show you how to create a basic image-to-text app that lets users upload an image, enter a natural language prompt describing a query about the image, and receive a text-based response generated by the AI model. Using a simple interface built with Streamlit, a base64 image decoder, and leveraging the Oracle Cloud Infrastructure (OCI) Generative AI inference API for processing multimodal data (text and images), it’s easy to put together and serves as an ideal entry point to try out AI services on OCI.

Demo

Demo: Ask Questions and Get Answers About Uploaded Photos Using GenAI (1:19)

Prerequisites and setup

  1. Oracle Cloud account—sign-up page
  2. OCI Generative AI—documentation
  3. Streamlit—documentation

注:为免疑义,本网页所用以下术语专指以下含义:

  1. 除Oracle隐私政策外,本网站中提及的“Oracle”专指Oracle境外公司而非甲骨文中国。
  2. 相关Cloud或云术语均指代Oracle境外公司提供的云技术或其解决方案。