gokaygokay commited on
Commit
154712f
·
1 Parent(s): c83ee24
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import T5EncoderModel, BitsAndBytesConfig as BitsAndBytesConfi
7
  # Initialize model outside the function
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
  dtype = torch.bfloat16
10
- single_file_base_model = "camenduru/FLUX.1-dev-diffusers"
11
  file_url = "https://huggingface.co/lodestones/Chroma/resolve/main/chroma-unlocked-v31.safetensors"
12
 
13
  quantization_config_tf = BitsAndBytesConfigTF(load_in_8bit=True, bnb_8bit_compute_dtype=torch.bfloat16)
@@ -42,7 +42,7 @@ iface = gr.Interface(
42
  ],
43
  outputs=gr.Image(label="Generated Image"),
44
  title="Chroma Image Generator",
45
- description="Generate images using the Chroma model with FLUX pipeline",
46
  examples=[
47
  ["A beautiful sunset over mountains, photorealistic, 8k", "blurry, low quality, distorted", 30, 7.5],
48
  ["A futuristic cityscape at night, neon lights, cyberpunk style", "ugly, deformed, low resolution", 30, 7.5]
 
7
  # Initialize model outside the function
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
  dtype = torch.bfloat16
10
+ base_model = "lodestones/Chroma"
11
  file_url = "https://huggingface.co/lodestones/Chroma/resolve/main/chroma-unlocked-v31.safetensors"
12
 
13
  quantization_config_tf = BitsAndBytesConfigTF(load_in_8bit=True, bnb_8bit_compute_dtype=torch.bfloat16)
 
42
  ],
43
  outputs=gr.Image(label="Generated Image"),
44
  title="Chroma Image Generator",
45
+ description="Generate images using the Chroma model",
46
  examples=[
47
  ["A beautiful sunset over mountains, photorealistic, 8k", "blurry, low quality, distorted", 30, 7.5],
48
  ["A futuristic cityscape at night, neon lights, cyberpunk style", "ugly, deformed, low resolution", 30, 7.5]