Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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 |
-
|
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)
|