mrestrepo commited on
Commit
b049b09
·
1 Parent(s): 688007d

AutoPipelineForImage2Image test

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import numpy as np
4
  import random
5
  import os
6
- from diffusers import FluxImg2ImgPipeline
7
  import torch
8
  from huggingface_hub import snapshot_download
9
 
@@ -12,7 +12,7 @@ SPACE_PASSWORD = 'KR_4dmin'
12
 
13
  snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
14
 
15
- pipeline = FluxImg2ImgPipeline.from_pretrained(
16
  'black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
17
  pipeline.load_lora_weights('Roomie/xavyy', weight_name='xavyy.safetensors')
18
 
 
3
  import numpy as np
4
  import random
5
  import os
6
+ from diffusers import AutoPipelineForImage2Image
7
  import torch
8
  from huggingface_hub import snapshot_download
9
 
 
12
 
13
  snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
14
 
15
+ pipeline = AutoPipelineForImage2Image.from_pretrained(
16
  'black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
17
  pipeline.load_lora_weights('Roomie/xavyy', weight_name='xavyy.safetensors')
18