Yaron Koresh commited on
Commit
dce2314
·
verified ·
1 Parent(s): 7b96870

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -1,7 +1,6 @@
1
  """
2
  Modified parts included from these sources:
3
  - https://github.com/nidhaloff/deep-translator
4
- - https://huggingface.co/spaces/ostris/Flex.1-alpha
5
  """
6
 
7
  import urllib
@@ -514,14 +513,11 @@ function custom(){
514
  # torch pipes
515
 
516
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
517
- #good_vae = AutoencoderKL.from_pretrained("ostris/Flex.1-alpha", subfolder="vae", torch_dtype=dtype).to(device)
518
- image_pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype, vae=taef1).to(device) # ostris/Flex.1-alpha
519
  #image_pipe.enable_model_cpu_offload()
520
 
521
  torch.cuda.empty_cache()
522
 
523
- #image_pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(image_pipe)
524
-
525
  # functionality
526
 
527
  @spaces.GPU(duration=300)
 
1
  """
2
  Modified parts included from these sources:
3
  - https://github.com/nidhaloff/deep-translator
 
4
  """
5
 
6
  import urllib
 
513
  # torch pipes
514
 
515
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
516
+ image_pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype, vae=taef1).to(device)
 
517
  #image_pipe.enable_model_cpu_offload()
518
 
519
  torch.cuda.empty_cache()
520
 
 
 
521
  # functionality
522
 
523
  @spaces.GPU(duration=300)