Spaces:
Runtime error
Runtime error
fix cuda unavailable
Browse files- gradio_app.py +1 -1
gradio_app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
|
7 |
model_path = "sd-pokemon-model"
|
8 |
pipe = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16, low_cpu_mem_usage=False, device_map=None)
|
9 |
-
pipe.to("cuda")
|
10 |
|
11 |
def predict(prompt):
|
12 |
image = pipe(prompt=prompt).images[0]
|
|
|
6 |
|
7 |
model_path = "sd-pokemon-model"
|
8 |
pipe = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16, low_cpu_mem_usage=False, device_map=None)
|
9 |
+
# pipe.to("cuda")
|
10 |
|
11 |
def predict(prompt):
|
12 |
image = pipe(prompt=prompt).images[0]
|