{"id":22771639,"url":"https://github.com/fmxexpress/flux-1.1-pro-desktop-gui","last_synced_at":"2025-07-26T21:13:36.880Z","repository":{"id":265670487,"uuid":"868101394","full_name":"FMXExpress/Flux-1.1-Pro-Desktop-GUI","owner":"FMXExpress","description":"A desktop GUI for Flux 1.1 Pro built using DelphiFMX For Python","archived":false,"fork":false,"pushed_at":"2024-10-05T13:34:50.000Z","size":810,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T17:16:13.509Z","etag":null,"topics":["ai","firemonkey","firemonkey-demo","flux","generative-ai","python","replicate-api","text-to-image"],"latest_commit_sha":null,"homepage":"https://www.fmxexpress.com/","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/FMXExpress.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":"2024-10-05T13:34:48.000Z","updated_at":"2025-04-13T01:03:23.000Z","dependencies_parsed_at":"2024-11-30T12:33:14.254Z","dependency_job_id":"bfe0bb9f-b272-443a-8fd9-8a2ec8f84fdf","html_url":"https://github.com/FMXExpress/Flux-1.1-Pro-Desktop-GUI","commit_stats":null,"previous_names":["fmxexpress/flux-1.1-pro-desktop-gui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FFlux-1.1-Pro-Desktop-GUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FFlux-1.1-Pro-Desktop-GUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FFlux-1.1-Pro-Desktop-GUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FFlux-1.1-Pro-Desktop-GUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMXExpress","download_url":"https://codeload.github.com/FMXExpress/Flux-1.1-Pro-Desktop-GUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249014532,"owners_count":21198622,"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":["ai","firemonkey","firemonkey-demo","flux","generative-ai","python","replicate-api","text-to-image"],"created_at":"2024-12-11T16:16:01.051Z","updated_at":"2025-04-15T05:30:39.393Z","avatar_url":"https://github.com/FMXExpress.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flux 1.1 Pro Text Prompt Desktop GUI\n\nThis project is a **DelphiFMX** desktop application built with Python that uses the **Replicate API** to generate images from text prompts. It utilizes the [black-forest-labs/flux-1.1-pro](https://replicate.com/black-forest-labs/flux-1.1-pro) model to generate and display images based on user input.\n\nThe graphical user interface (GUI) provides an intuitive experience, allowing users to input detailed prompts, send them to the Flux 1.1 Pro model, and view the generated images directly within the app.\n\n## Features\n\n- Input text prompts to generate images.\n- Display the generated image within the app.\n- User-friendly GUI built with **DelphiFMX**.\n- Real-time status updates during image generation.\n- Error handling and display of process feedback.\n- Uses the **Replicate API** to interact with the Flux 1.1 Pro model.\n\n## Technologies Used\n\n- **Python** for application logic and Replicate API integration.\n- **DelphiFMX** for the desktop GUI (cross-platform capability).\n- **Replicate API** to send text prompts and retrieve generated images.\n\n## Screenshot\n\nBelow is a screenshot of the GUI in action:\n\n![App Screenshot](./screenshot.png)\n\n## Prerequisites\n\nBefore running this project, you will need:\n\n1. **Python 3.x** installed on your system.\n2. The following Python libraries installed:\n   - `replicate`: For interacting with the Replicate API.\n   - `delphifmx`: For building the desktop GUI using DelphiFMX.\n   - `urllib` and `hashlib`: For image downloading and file handling.\n\n   You can install the dependencies via pip:\n\n   ```bash\n   pip install replicate delphifmx\n   ```\n\n3. A valid **Replicate API key**. Sign up at [Replicate](https://replicate.com) to obtain your API key, then set it in the environment variable `REPLICATE_API_TOKEN`.\n\n## Installation\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/yourusername/flux-1.1-pro-gui.git\n   cd flux-1.1-pro-gui\n   ```\n\n2. Set your Replicate API key:\n   ```bash\n   export REPLICATE_API_TOKEN=\"your_replicate_api_key\"\n   ```\n\n3. Run the application:\n   ```bash\n   python main.py\n   ```\n\n## How It Works\n\n1. **Text Input**: The user enters a text prompt that describes the image they want to generate.\n2. **Send Prompt**: Upon pressing the \"Send Prompt\" button, the app sends the text to the **Flux 1.1 Pro** model hosted on Replicate.\n3. **Image Generation**: The app retrieves the generated image and displays it inside the application window.\n4. **Status Updates**: The status bar at the bottom of the window shows the progress of the image generation (e.g., \"Processing...\", \"Complete!\", or any error messages).\n\n## Usage Example\n\n1. Enter a detailed prompt, such as:\n   ```\n   A young, vibrant magical Fire Monkey wearing a hoplite helmet and with soft, glowing fur that transitions from fiery red at the tips to a warm orange near its body, sits perched playfully with a mischievous grin.\n   ```\n2. Click the \"Send Prompt\" button.\n3. Watch the progress in the status bar, and once the image is ready, it will be displayed in the app.\n\n## Key Functions\n\n- `__send_prompt`: Sends the user input (prompt) to the Flux 1.1 Pro model via the Replicate API.\n- `__start_prompt_process`: Handles the prediction process and manages the image generation.\n- `__on_timer_tick`: Periodically checks the status of the image generation and displays the image when the process completes.\n\n## Links\n\n- [Replicate API Documentation](https://replicate.com/docs)\n- [DelphiFMX Documentation](https://pypi.org/project/delphifmx/)\n- [black-forest-labs/flux-1.1-pro Model](https://replicate.com/black-forest-labs/flux-1.1-pro)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Acknowledgments\n\n- Thanks to [Replicate](https://replicate.com) for providing the API and model hosting.\n- Special thanks to [DelphiFMX](https://pypi.org/project/delphifmx/) for the cross-platform GUI framework.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmxexpress%2Fflux-1.1-pro-desktop-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmxexpress%2Fflux-1.1-pro-desktop-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmxexpress%2Fflux-1.1-pro-desktop-gui/lists"}