Spaces:
Runtime error
Runtime error
Commit
·
a15d459
1
Parent(s):
36abcb2
add rm -rf /data-nvme/zerogpu-offload/*
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import random
|
|
| 5 |
import spaces #[uncomment to use ZeroGPU]
|
| 6 |
from diffusers import DiffusionPipeline
|
| 7 |
import torch
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 10 |
model_repo_id = "black-forest-labs/FLUX.1-schnell" # Replace to the model you would like to use
|
|
|
|
| 5 |
import spaces #[uncomment to use ZeroGPU]
|
| 6 |
from diffusers import DiffusionPipeline
|
| 7 |
import torch
|
| 8 |
+
import subprocess
|
| 9 |
+
|
| 10 |
+
subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", env={}, shell=True)
|
| 11 |
|
| 12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 13 |
model_repo_id = "black-forest-labs/FLUX.1-schnell" # Replace to the model you would like to use
|