Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terieyenike/content-aware-st
This app demonstrates content-aware cropping using Cloudinary's AI capabilities
https://github.com/terieyenike/content-aware-st
cloudinary python python-dotenv streamlit
Last synced: 11 days ago
JSON representation
This app demonstrates content-aware cropping using Cloudinary's AI capabilities
- Host: GitHub
- URL: https://github.com/terieyenike/content-aware-st
- Owner: Terieyenike
- Created: 2024-11-08T12:38:40.000Z (12 days ago)
- Default Branch: main
- Last Pushed: 2024-11-08T12:46:17.000Z (12 days ago)
- Last Synced: 2024-11-08T13:42:25.563Z (12 days ago)
- Topics: cloudinary, python, python-dotenv, streamlit
- Language: Python
- Homepage: https://content-aware-st.streamlit.app/
- Size: 793 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Content-Aware Application with Streamlit and Cloudinary
## Overview
This project showcases how to build a content-aware application using Streamlit and Cloudinary. The application allows users to upload images, which are then processed and delivered using Cloudinary's powerful image management capabilities. With Cloudinary, you can easily deliver images to perfectly fit your graphic design and layout, on any device.
![content aware](image.png)
## Prerequisites
To get started, ensure you have the following installed:
- Python 3.x
- Streamlit
- CloudinaryYou can install the required packages using pip:
```
pip install streamlit cloudinary python-dotenv
```## Environment Variables
Before running the application, set up the following environment variables with your Cloudinary account details:
```bash
export CLOUDINARY_CLOUD_NAME="CLOUDINARY_CLOUD_NAME"
export CLOUDINARY_API_KEY="CLD_API_KEY"
export CLOUDINARY_API_SECRET="CLD_API_SECRET"
```Replace the empty quotes with your actual Cloudinary credentials.
## Project Structure
The project consists of the following key files:
- **app.py**: The main application file where the Streamlit app is defined.
- **requirements.txt**: A file listing the required Python packages.## Features
- **Image Upload**: Users can upload images through a user-friendly interface using the publicly available image ID `sofa_cat_wtsm4i.jpg`
- **Dynamic Image Delivery**: Images are processed and delivered via Cloudinary, ensuring optimal performance and responsiveness.## Running the Application
To run the application, navigate to the project directory in your terminal and execute:
```
streamlit run app.py
```This command will start the Streamlit server, and you can access the application in your web browser at `http://localhost:8501`.
## Author
- Teri
## Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.