Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ decrypted_token = get_hf_token("gAAAAABn3GfShExoJd50nau3B5ZJNiQ9dRD1ACO3XXMwVaIQ
|
|
| 26 |
login(token=decrypted_token)
|
| 27 |
|
| 28 |
|
| 29 |
-
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.
|
| 30 |
-
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
| 31 |
|
| 32 |
|
| 33 |
def enhance_prompt(user_prompt):
|
|
|
|
| 26 |
login(token=decrypted_token)
|
| 27 |
|
| 28 |
|
| 29 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.float32)
|
| 30 |
+
# pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
| 31 |
|
| 32 |
|
| 33 |
def enhance_prompt(user_prompt):
|