Spaces:
Sleeping
Sleeping
Commit
Β·
ffe870b
1
Parent(s):
12e962a
Rename project to FLUX.1-dev-Picasso
Browse files- Update all references from FLUX.1-Kontext-dev to FLUX.1-dev
- Reflect the actual model being used for text-to-image generation
- Update documentation in README.md, app.py, and CLAUDE.md
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
CLAUDE.md
CHANGED
|
@@ -4,11 +4,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
| 4 |
|
| 5 |
## Project Overview
|
| 6 |
|
| 7 |
-
This is a Hugging Face Spaces application that generates images in Pablo Picasso's cubist style using the FLUX.1-
|
| 8 |
|
| 9 |
## Architecture
|
| 10 |
|
| 11 |
-
- **app.py**: Gradio application using FLUX.1-
|
| 12 |
- **README.md**: Hugging Face Spaces configuration file with metadata (title, emoji, SDK version, etc.)
|
| 13 |
- **requirements.txt**: Python dependencies including PyTorch, Diffusers, and Gradio
|
| 14 |
- **.gitattributes**: Git LFS configuration for handling large model files and binary assets
|
|
@@ -26,7 +26,7 @@ The app is automatically deployed to Hugging Face Spaces with ZeroGPU. Changes t
|
|
| 26 |
|
| 27 |
## Development Notes
|
| 28 |
|
| 29 |
-
- Uses **FLUX.1-
|
| 30 |
- **@spaces.GPU decorators** are required for ZeroGPU compatibility
|
| 31 |
- Model runs in **bfloat16** precision for optimal performance on H200 GPUs
|
| 32 |
- Output resolution is **1024x1024** pixels
|
|
|
|
| 4 |
|
| 5 |
## Project Overview
|
| 6 |
|
| 7 |
+
This is a Hugging Face Spaces application that generates images in Pablo Picasso's cubist style using the FLUX.1-dev model from Black Forest Labs. The app uses Gradio to create a web interface with ZeroGPU acceleration for high-quality text-to-image generation.
|
| 8 |
|
| 9 |
## Architecture
|
| 10 |
|
| 11 |
+
- **app.py**: Gradio application using FLUX.1-dev for Picasso-style image generation
|
| 12 |
- **README.md**: Hugging Face Spaces configuration file with metadata (title, emoji, SDK version, etc.)
|
| 13 |
- **requirements.txt**: Python dependencies including PyTorch, Diffusers, and Gradio
|
| 14 |
- **.gitattributes**: Git LFS configuration for handling large model files and binary assets
|
|
|
|
| 26 |
|
| 27 |
## Development Notes
|
| 28 |
|
| 29 |
+
- Uses **FLUX.1-dev** model from Black Forest Labs for high-quality text-to-image generation
|
| 30 |
- **@spaces.GPU decorators** are required for ZeroGPU compatibility
|
| 31 |
- Model runs in **bfloat16** precision for optimal performance on H200 GPUs
|
| 32 |
- Output resolution is **1024x1024** pixels
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: FLUX.1-
|
| 3 |
emoji: π¨
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
|
@@ -9,8 +9,8 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# FLUX.1-
|
| 13 |
|
| 14 |
-
Generate high-quality images in Pablo Picasso's distinctive cubist style using the
|
| 15 |
|
| 16 |
This is a demo application that integrates with external APIs to provide Picasso-style image generation capabilities.
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FLUX.1-dev-Picasso
|
| 3 |
emoji: π¨
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# FLUX.1-dev-Picasso
|
| 13 |
|
| 14 |
+
Generate high-quality images in Pablo Picasso's distinctive cubist style using the FLUX.1-dev model from Black Forest Labs.
|
| 15 |
|
| 16 |
This is a demo application that integrates with external APIs to provide Picasso-style image generation capabilities.
|
app.py
CHANGED
|
@@ -52,9 +52,9 @@ def generate_image(prompt, num_inference_steps=28, guidance_scale=3.5):
|
|
| 52 |
return None, f"Error generating image: {str(e)}"
|
| 53 |
|
| 54 |
# Create Gradio interface
|
| 55 |
-
with gr.Blocks(title="π¨ FLUX.1-
|
| 56 |
-
gr.Markdown("# π¨ FLUX.1-
|
| 57 |
-
gr.Markdown("Generate high-quality images in Pablo Picasso's distinctive cubist style using FLUX.1-
|
| 58 |
|
| 59 |
with gr.Row():
|
| 60 |
with gr.Column():
|
|
|
|
| 52 |
return None, f"Error generating image: {str(e)}"
|
| 53 |
|
| 54 |
# Create Gradio interface
|
| 55 |
+
with gr.Blocks(title="π¨ FLUX.1-dev-Picasso") as demo:
|
| 56 |
+
gr.Markdown("# π¨ FLUX.1-dev-Picasso")
|
| 57 |
+
gr.Markdown("Generate high-quality images in Pablo Picasso's distinctive cubist style using FLUX.1-dev")
|
| 58 |
|
| 59 |
with gr.Row():
|
| 60 |
with gr.Column():
|