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
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:
Updating the README.md file to reflect the new features and changes in the app.
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:
Updated README.md to describe the new features
Replaced Gradio with Streamlit in app.py
Added a new ask_openai_with_image() function in app.py that takes a role parameter
Updated the payload sent to the OpenAI API to include the appropriate prompt based on the selected role
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.
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:
README.md
file to reflect the new features and changes in the app.app.py
file to:ask_openai_with_image()
that takes an additionalrole
parameter to determine whether the app should act as a fashion stylist or a mother.Summary
The key changes in this pull request are:
README.md
to describe the new featuresapp.py
ask_openai_with_image()
function inapp.py
that takes arole
parameterFixes #7.
This is an automated message generated by Sweep AI.