Gemini899 commited on
Commit
edde578
·
verified ·
1 Parent(s): 91c29bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -81,15 +81,7 @@ pipe = Flux2Pipeline.from_pretrained(
81
  pipe.to(device)
82
 
83
  # Pull pre-compiled Flux2 Transformer blocks from HF hub
84
- try:
85
- spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/FLUX.2", variant="fa3")
86
- except FileNotFoundError:
87
- print("FA3 variant not available, trying FA2...")
88
- try:
89
- spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/FLUX.2", variant="fa2")
90
- except FileNotFoundError:
91
- print("FA2 variant not available, using default...")
92
- spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/FLUX.2")
93
 
94
  def image_to_data_uri(img):
95
  buffered = io.BytesIO()
 
81
  pipe.to(device)
82
 
83
  # Pull pre-compiled Flux2 Transformer blocks from HF hub
84
+ spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/FLUX.2", variant="fa3")
 
 
 
 
 
 
 
 
85
 
86
  def image_to_data_uri(img):
87
  buffered = io.BytesIO()