Niansuh commited on
Commit
abcb2ad
·
verified ·
1 Parent(s): 1c2158f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -8,7 +8,7 @@ from diffusers import DiffusionPipeline
8
  dtype = torch.bfloat16
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
- pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16, revision="refs/pr/1").to(device)
12
 
13
  MAX_SEED = np.iinfo(np.int32).max
14
  MAX_IMAGE_SIZE = 2048
@@ -45,7 +45,7 @@ with gr.Blocks(css=css) as demo:
45
 
46
  with gr.Column(elem_id="col-container"):
47
  gr.Markdown(f"""# FLUX.1 [schnell]
48
- 12B param rectified flow transformer distilled from [FLUX.1 [pro]] for 4 step generation
49
  [[model](https://huggingface.co/Niansuh/FLUX.1-schnell)]
50
  """)
51
 
@@ -119,4 +119,3 @@ with gr.Blocks(css=css) as demo:
119
  outputs = [result, seed]
120
  )
121
 
122
- demo.launch()
 
8
  dtype = torch.bfloat16
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
+ pipe = DiffusionPipeline.from_pretrained("Niansuh/FLUX.1-schnell", torch_dtype=dtype).to(device)
12
 
13
  MAX_SEED = np.iinfo(np.int32).max
14
  MAX_IMAGE_SIZE = 2048
 
45
 
46
  with gr.Column(elem_id="col-container"):
47
  gr.Markdown(f"""# FLUX.1 [schnell]
48
+ 12B param rectified flow transformer distilled from [FLUX.1 pro] for 4 step generation
49
  [[model](https://huggingface.co/Niansuh/FLUX.1-schnell)]
50
  """)
51
 
 
119
  outputs = [result, seed]
120
  )
121