Spaces:
Sleeping
Sleeping
commit
Browse files
app.py
CHANGED
|
@@ -502,9 +502,8 @@ function custom(){
|
|
| 502 |
# torch pipes
|
| 503 |
|
| 504 |
image_pipe = FluxPipeline.from_pretrained(base, torch_dtype=torch.bfloat16).to(device)
|
| 505 |
-
#image_pipe.enable_model_cpu_offload()
|
| 506 |
|
| 507 |
-
pegasus_tokenizer = PegasusTokenizerFast.from_pretrained("google/pegasus-xsum")
|
| 508 |
pegasus_model = PegasusForConditionalGeneration.from_pretrained("google/pegasus-xsum")
|
| 509 |
|
| 510 |
# functionality
|
|
|
|
| 502 |
# torch pipes
|
| 503 |
|
| 504 |
image_pipe = FluxPipeline.from_pretrained(base, torch_dtype=torch.bfloat16).to(device)
|
|
|
|
| 505 |
|
| 506 |
+
pegasus_tokenizer = PegasusTokenizerFast.from_pretrained("google/pegasus-xsum")
|
| 507 |
pegasus_model = PegasusForConditionalGeneration.from_pretrained("google/pegasus-xsum")
|
| 508 |
|
| 509 |
# functionality
|