ajitesh123 / AI-Stylist

OpenAI GPT-4 With Vision 🔥 This repository features an outfit rating app using OpenAI's GPT-4 with the Vision extension. Users can upload images through a Streamlit interface, and the app provides both a fashion stylist's and a mother's verdict on the outfit. Contributions are welcome!
MIT License
1 stars 0 forks source link

Sweep: Add fashion stylist and mother features to the image analysis app #11

Closed sweep-ai-self-hosted-aj[bot] closed 4 days ago

sweep-ai-self-hosted-aj[bot] commented 1 week ago

Purpose

This pull request adds a new feature to the image analysis app, allowing users to get recommendations from the app acting as either a fashion stylist or a mother. The fashion stylist considers factors such as color theory, texture, and overall style, while the mother considers practicality, appropriateness, and overall value. Both roles provide a justification for their recommendation.

Description

The changes in this pull request include:

  1. Updating the README.md file to reflect the new features and changes in the app.
  2. Modifying the app.py file to:
    • Replace the Gradio interface with a Streamlit interface.
    • Add a new function ask_openai_with_image() that takes an additional role parameter to determine whether the app should act as a fashion stylist or a mother.
    • Update the payload sent to the OpenAI API to include the appropriate prompt based on the selected role.

Summary

The key changes in this pull request are:

Fixes #7.


[!TIP] To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.

sweep-ai-self-hosted-aj[bot] commented 1 week ago

Rollback Files For Sweep

This is an automated message generated by Sweep AI.