{"id":28961490,"url":"https://github.com/tonykipkemboi/streamlit-replicate-img-app","last_synced_at":"2025-06-24T02:03:42.606Z","repository":{"id":186186156,"uuid":"673088335","full_name":"tonykipkemboi/streamlit-replicate-img-app","owner":"tonykipkemboi","description":"Using Replicate to build Streamlit app for image generations!","archived":false,"fork":false,"pushed_at":"2024-08-14T19:25:04.000Z","size":9784,"stargazers_count":97,"open_issues_count":1,"forks_count":237,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-20T05:45:06.584Z","etag":null,"topics":["imagegeneration","python","replicate","streamlit"],"latest_commit_sha":null,"homepage":"https://generateimages.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tonykipkemboi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-31T21:03:57.000Z","updated_at":"2025-06-06T02:41:39.000Z","dependencies_parsed_at":"2024-01-01T23:29:33.794Z","dependency_job_id":"768d80ec-a4f1-4048-89d5-099c113336c4","html_url":"https://github.com/tonykipkemboi/streamlit-replicate-img-app","commit_stats":null,"previous_names":["tonykipkemboi/streamlit-replicate-img-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tonykipkemboi/streamlit-replicate-img-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonykipkemboi%2Fstreamlit-replicate-img-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonykipkemboi%2Fstreamlit-replicate-img-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonykipkemboi%2Fstreamlit-replicate-img-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonykipkemboi%2Fstreamlit-replicate-img-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonykipkemboi","download_url":"https://codeload.github.com/tonykipkemboi/streamlit-replicate-img-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonykipkemboi%2Fstreamlit-replicate-img-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261589903,"owners_count":23181435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["imagegeneration","python","replicate","streamlit"],"created_at":"2025-06-24T02:03:41.911Z","updated_at":"2025-06-24T02:03:42.502Z","avatar_url":"https://github.com/tonykipkemboi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ Image Generation App ✨\n\n[![Streamlit Replicate Image App](https://github.com/tonykipkemboi/streamlit-replicate-img-app/actions/workflows/python-app.yml/badge.svg)](https://github.com/tonykipkemboi/streamlit-replicate-img-app/actions/workflows/python-app.yml)\n\n_Image Generator App: where art meets algorithms and dreams meet pixels!_ 🚀\n\n![Astronaut on a unicorn](./gallery/astro_on_unicorn.png)\n\n## Overview\n\nPowered by cutting-edge AI models running on [Replicate](https://replicate.com/about) and wrapped in a Streamlit interface, this app lets you transform plain text prompts into mesmerizing visual masterpieces.\n\n## Technical Features\n\n- **Neural Model**: Leverages the power of the replicate.run model for image generation, providing detailed and accurate depictions.\n- **Streamlit Framework**: Built atop the versatile Streamlit library, ensuring a smooth and responsive UI/UX.\n- **Dynamic Customization**: You can peek \"under the hood\", tune hyperparameters like guidance_scale, prompt_strength, and more for fine-grained control.\n- **Gallery**: A curated gallery for inspiration, showcasing the prowess of the underlying model.\n\n## Getting Started\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/tonykipkemboi/streamlit-replicate-img-app.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd streamlit-replicate-img-app\n   ```\n\n3. Install the dependencies:\n\n   ```python\n   pip install -r requirements.txt\n   ```\n\n4. Rename the `.streamlit/example_secrets.toml` file to `.streamlit/secrets.toml`.\n\n5. Paste your Replicate API token in the secrets.toml file:\n\n   ```bash\n   REPLICATE_API_TOKEN = \"paste-your-replicate-api-token-here\"\n   ```\n\n## Usage\n\n1. Run the Streamlit app:\n\n   ```python\n   streamlit run streamlit_app.py\n   ```\n\n2. Navigate to the provided local URL, and voila! Start crafting your visual narratives.\n\n## Contributions\n\nYour insights can make this tool even better! Feel free to fork, make enhancements, and raise a PR.\n\n## Attribution\n\n- **Developed by**: The wizards over at [Stability AI](https://stability.ai/) 🧙‍♂️\n\n- **Model type**: Diffusion-based text-to-image generative model\n\n- **License**: [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md)\n\n- **Model Description**: This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses two fixed, pretrained text encoders ([OpenCLIP-ViT/G](https://github.com/mlfoundations/open_clip) and [CLIP-ViT/L](https://github.com/openai/CLIP/tree/main)).\n\n- **Resources for more information**: Check out our [GitHub Repository](https://github.com/Stability-AI/generative-models) and the [SDXL report on arXiv](https://arxiv.org/abs/2307.01952).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonykipkemboi%2Fstreamlit-replicate-img-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonykipkemboi%2Fstreamlit-replicate-img-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonykipkemboi%2Fstreamlit-replicate-img-app/lists"}