This repository contains a Python-based image generation application that leverages the CLIPDrop API for text-to-image generation. The application provides both a command line interface (CLI) and a user-friendly interface powered by Streamlit.
Before using the application, ensure you have the following installed:
- Python 3.x
- Required Python packages (install via
pip install -r requirements.txt
) - CLIPDrop API key (obtain from CLIPDrop website)
-
Modify Prompt: Open
app.py
in your preferred Python IDE. Modify theprompt
variable with your desired text prompt. -
Run the Script: Execute the script to generate an image.
-
Run Streamlit App:
streamlit run streamlit_app.py
-
Access Interface: Open your browser and navigate to the link it provides you.
-
Generate Image:
- Enter a text prompt in the input box.
- Click the "Generate Image" button.
-
View Results: The generated image will be displayed on the interface.
-
Run Streamlit App:
streamlit run text.py
-
Access Interface: Open your browser and navigate to the link it provides you.
-
Generate Image with Text History:
- Enter a text prompt in the input box.
- Click the "Generate Image" button.
-
View Results and History: The generated image will be displayed, and your previous questions and responses will be saved in the text area below.
- Ensure your CLIPDrop API key is valid and configured in
config.py
. - Streamlit interfaces can be customized based on your requirements.
Feel free to explore and customize the application to meet your specific needs.