This project is a Flask-based web application that utilizes the Hugging Face API for image generation and text summarization.
This project demonstrates the use of the Hugging Face API to perform image generation and text summarization. It provides a simple web interface where users can input text for summarization or provide parameters for image generation.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have the following installed on your machine:
- Python 3.8 or higher
- Flask
- Requests library
You will also need an API key from Hugging Face. You can sign up and obtain your API key here.
-
Clone the repository
git clone https://github.com/impanaj07/Textura.git cd Textura -
Create and activate a virtual environment
python3 -m venv venv source venv/bin/activate -
Install the required packages
pip install -r requirements.txt
-
Set up your environment variables. Create a
.envfile in the root directory and add your Hugging Face API key:HUGGING_FACE_API_KEY=your_hugging_face_api_key
-
Run the Flask application
flask run
Once the application is running, you can access it at http://127.0.0.1:5000. Use the web interface to input text for summarization or provide parameters for image generation.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.