Welcome to the Talk with your image repository! This project showcases a powerful Streamlit application that allows users to ask questions about images they upload and receive insightful responses from an AI conversational agent. The heart of this app is the OpenAI GPT-3.5 Turbo model, which harnesses advanced language capabilities to provide accurate answers based on both the uploaded image and user queries.
-
Clone the Repository:
git clone https://github.com/your-username/talk-with-image.git
-
Navigate to the Project Directory:
cd talk-with-image -
Install Dependencies:
pip install -r requirements.txt
-
Get Your OpenAI API Key:
Sign up for an API key at OpenAI.
-
Configure Your API Key:
Replace the placeholder API key in
app.pywith your actual OpenAI API key:llm = ChatOpenAI( openai_api_key='YOUR_API_KEY', temperature=0, model_name="gpt-3.5-turbo" )
-
Run the Streamlit Application:
streamlit run main.py
-
Access the Application:
Open your web browser and navigate to http://localhost:8501 to explore the application.
-
Upload an Image:
Click the file upload button to upload an image.
-
Display of Uploaded Image:
The uploaded image will be displayed on the interface.
-
Ask a Question:
Enter a question related to the image in the provided text input field.
-
AI Response:
The AI conversational agent will generate a response based on your question and the image.
-
View Response:
The generated response will appear below the question input area.
This application comes with the following valuable tools:
-
ImageCaptionTool: Generates descriptive captions for the uploaded images.
-
ObjectDetectionTool: Performs object detection on the uploaded images, identifying the objects present.
Contributions to this project are greatly appreciated! If you have any ideas, improvements, or bug fixes, don't hesitate to submit a pull request.
This project is licensed under the MIT License.
- The OpenAI GPT-3.5 Turbo model powers the AI conversational agent. Learn more at OpenAI.
- The interactive user interface is built using the Streamlit library. Refer to the Streamlit documentation for details.
- The LangChain library manages the conversational AI agent and tools. Find more information at the LangChain GitHub repository.
- The Transformers library facilitates AI inference. Further details about the models used can be found here and here.
- The above repository has been made from the following repository and tutorial.
Feel free to modify and personalize the content to fit your repository's specific details. Happy coding!