Spaces:
Sleeping
Sleeping
fix zerogpu
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import torch
|
2 |
from diffusers import StableDiffusion3Pipeline, StableDiffusionPipeline, StableDiffusionXLPipeline, DPMSolverSinglestepScheduler, StableCascadePriorPipeline, StableCascadeDecoderPipeline
|
3 |
import gradio as gr
|
@@ -6,7 +7,7 @@ import random
|
|
6 |
import numpy
|
7 |
from PIL import Image
|
8 |
import gc # free up memory
|
9 |
-
|
10 |
|
11 |
HF_TOKEN = os.getenv("HF_TOKEN") # login with hf read token to access sd gated models
|
12 |
|
|
|
1 |
+
import spaces
|
2 |
import torch
|
3 |
from diffusers import StableDiffusion3Pipeline, StableDiffusionPipeline, StableDiffusionXLPipeline, DPMSolverSinglestepScheduler, StableCascadePriorPipeline, StableCascadeDecoderPipeline
|
4 |
import gradio as gr
|
|
|
7 |
import numpy
|
8 |
from PIL import Image
|
9 |
import gc # free up memory
|
10 |
+
|
11 |
|
12 |
HF_TOKEN = os.getenv("HF_TOKEN") # login with hf read token to access sd gated models
|
13 |
|